Parseline » History » Version 11
Per Amundsen, 07/12/2023 01:56 PM
| 1 | 1 | Per Amundsen | _Added in 1.9.7_ |
|---|---|---|---|
| 2 | |||
| 3 | */parseline -iotbqpnuN [text|&binvar]* |
||
| 4 | |||
| 5 | 6 | Per Amundsen | Modifies the incoming/outgoing server line if used inside [[on PARSELINE]] event or to 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 | 5 | Per Amundsen | See also [[$parseline]] [[$parsetype]] [[$parseutf]]. |
| 10 | |||
| 11 | 1 | Per Amundsen | *Switches* |
| 12 | |||
| 13 | 10 | Per Amundsen | table(ktable). |
| 14 | |*Switch*|*Description*| |
||
| 15 | | -i | Specifies an incoming line. | |
||
| 16 | | -o | Specifies an outgoing line. | |
||
| 17 | | -t | Specifies text is defined. | |
||
| 18 | | -b | Specifies &binvar is defined. | |
||
| 19 | | -q | Add a new fake line to the end of the input/output queue | |
||
| 20 | | -p | Used with -q to indicate that the new line should trigger the [[on PARSELINE]] event. | |
||
| 21 | | -n | Adds a [[$crlf]] to the end of the line if it does not have one. | |
||
| 22 | 11 | Per Amundsen | | -uN | Enable/Disable utf8 encoding/decoding of the line. N = 1 = enable, 0 = disable. (Currently only works with -b) | |
| 23 | | -a | *TODO* | |
||
| 24 | 1 | Per Amundsen | |
| 25 | 9 | Per Amundsen | *Parameters* |
| 26 | 1 | Per Amundsen | |
| 27 | 10 | Per Amundsen | table(ktable). |
| 28 | |*Parameter*|*Description*| |
||
| 29 | | text<notextile>|</notextile>&binvar | Text or &binvar. | |
||
| 30 | 1 | Per Amundsen | |
| 31 | *Example* |
||
| 32 | |||
| 33 | <pre> |
||
| 34 | 7 | Per Amundsen | ; Low level text replace. |
| 35 | 3 | Per Amundsen | on *:PARSELINE:in:*word*:{ var %rep = $gettok($parseline,1-3,32) $replacex($gettok($parseline,4-,32), word, newword | parseline -it %rep } |
| 36 | 1 | Per Amundsen | |
| 37 | 8 | Per Amundsen | ; Halt a parseline event by setting the text to nothing/$null. |
| 38 | 7 | Per Amundsen | on *:PARSELINE:in:*word*:parseline -it |
| 39 | |||
| 40 | ; Perform a fake channel message. |
||
| 41 | 4 | Per Amundsen | //parseline -itq : $+ $ial($me) PRIVMSG $active :Hello world |
| 42 | 1 | Per Amundsen | </pre> |