Sockwrite » History » Version 9
Per Amundsen, 02/16/2023 03:14 PM
1 | 2 | Per Amundsen | _Added in 1.8.10_ |
---|---|---|---|
2 | |||
3 | 6 | Per Amundsen | */sockwrite [-tnba] <name> [numbytes] <text|%var|&binvar>* |
4 | 1 | Per Amundsen | |
5 | 3 | Per Amundsen | 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. |
6 | |||
7 | 7 | Per Amundsen | You can use a [[Scripting_Wildcards|wildcardd]] name to send the same information at once to all connections that match the [[Scripting_Wildcards|wildcard]]. |
8 | 3 | Per Amundsen | |
9 | If the write fails, it will set $sock().wserr to the error value, and triggers the on sockwrite event with $sockerr set. |
||
10 | |||
11 | 1 | Per Amundsen | *Switches* |
12 | |||
13 | 9 | Per Amundsen | table(ktable). |
14 | |*Switch*|*Description*| |
||
15 | | -t | Forces AdiIRC to send anything beginning with a & as normal text instead of interpreting it as a binary variable. | |
||
16 | | -n | Appends a [[$crlf]] to the line being sent if it is not a &binvar and if it does not already have a [[$crlf]]. | |
||
17 | | -b | Indicates that you are specifying the numbytes value which is the number of bytes you want sent. | |
||
18 | | -a | Disables UTF-8 encoding of characters in the range 0-255, as long as the text contains no characters > 255. | |
||
19 | 1 | Per Amundsen | |
20 | 8 | Per Amundsen | *Parameters* |
21 | 1 | Per Amundsen | |
22 | 9 | Per Amundsen | table(ktable). |
23 | |*Parameter*|*Description*| |
||
24 | | <name> | Name of the connection to send to. | |
||
25 | | [numbytes] | Number of bytes to send. (used with -b) | |
||
26 | | <text<notextile>|</notextile>%var<notextile>|</notextile>&binvar> | Plain text, %var or &binvar to send. | |