Project

General

Profile

Actions

Sockwrite » History » Revision 8

« Previous | Revision 8/9 (diff) | Next »
Per Amundsen, 12/03/2018 03:11 AM


Added in 1.8.10

/sockwrite [-tnba] <name> [numbytes] <text|%var|&binvar>

Queues data to be sent on the specified connection. AdiIRC will then try to send that info as quickly as it can. Once it has finished sending the info, it triggers the on sockwrite event so you can send more info if you need to.

You can use a wildcardd name to send the same information at once to all connections that match the wildcard.

If the write fails, it will set $sock().wserr to the error value, and triggers the on sockwrite event with $sockerr set.

Switches

-t - Forces AdiIRC to send anything beginning with a & as normal text instead of interpreting it as a binary variable.
-n - Appends a $crlf to the line being sent if it is not a &binvar and if it does not already have a $crlf.
-b - Indicates that you are specifying the numbytes value which is the number of bytes you want sent.
-a - Disables UTF-8 encoding of characters in the range 0-255, as long as the text contains no characters > 255.

Parameters

<name> - Name of the connection to send to.
[numbytes] - Number of bytes to send. (used with -b)
<text|%var|&binvar> - Plain text, %var or &binvar to send.

Updated by Per Amundsen about 6 years ago · 8 revisions

Also available in: PDF HTML TXT