Parseline » History » Version 4
Per Amundsen, 08/02/2015 04:36 AM
1 | 1 | Per Amundsen | _Added in 1.9.7_ |
---|---|---|---|
2 | |||
3 | */parseline -iotbqpnuN [text|&binvar]* |
||
4 | |||
5 | 2 | Per Amundsen | Modifies the incoming/outgoing server line if used inside [[on PARSELINE]] event or queue a new fake line. |
6 | 1 | Per Amundsen | |
7 | _This feature should only be used for testing or adding features not yet available in AdiIRC._ |
||
8 | |||
9 | *Switches* |
||
10 | |||
11 | -i - Specifies an incoming line. |
||
12 | -o -Specifies an outgoing line. |
||
13 | -t - Specifies text is defined. |
||
14 | -b - Specifies &binvar is defined. |
||
15 | -q - Add a new fake line to the end of the input/output queue |
||
16 | -p - Used with -q to indicate that the new line should trigger the [[on PARSELINE]] event. |
||
17 | -n - Adds a [[$crlf]] to the end of the line if it does not have one. |
||
18 | -uN - TODO |
||
19 | |||
20 | *Parameters* |
||
21 | |||
22 | text|&binvar - Text or &binvar. |
||
23 | |||
24 | *Example* |
||
25 | |||
26 | <pre> |
||
27 | 3 | Per Amundsen | ; low level text replace |
28 | on *:PARSELINE:in:*word*:{ var %rep = $gettok($parseline,1-3,32) $replacex($gettok($parseline,4-,32), word, newword | parseline -it %rep } |
||
29 | 4 | Per Amundsen | |
30 | ; fake channel message |
||
31 | //parseline -itq : $+ $ial($me) PRIVMSG $active :Hello world |
||
32 | 1 | Per Amundsen | </pre> |