From WikiChip
$sockbr Identifier - mIRC
< mirc‎ | identifiers
Revision as of 21:11, 27 September 2015 by 83.204.132.149 (talk) (Created page with "{{mirc title|$sockbr Identifier}}'''$sockbr''' return the number of bytes read from the last /sockread command done for that socket. == Synopsis == <pre>$sockbr</pre> == Par...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

$sockbr return the number of bytes read from the last /sockread command done for that socket.

Synopsis

$sockbr

Paramters

None

Properties

None

Example

on *:sockread:name:{
if ($sockerr) return
var %a
;sockread %a reads one line, or nothing
;we check if we read anything before comparing
if (!$sockbr) return
if (%a == something) echo -a ok
}

Compatibility

Added: mIRC v5.3
Added on: 13 Dec 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also

$sock $sockname $sockerr