Project

General

Profile

Parseline » History » Version 10

Per Amundsen, 02/16/2023 02:55 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
| -uN | *TODO* |
23 1 Per Amundsen
24 9 Per Amundsen
*Parameters*
25 1 Per Amundsen
26 10 Per Amundsen
table(ktable).
27
|*Parameter*|*Description*|
28
| text<notextile>|</notextile>&binvar | Text or &binvar. |
29 1 Per Amundsen
30
*Example*
31
32
<pre>
33 7 Per Amundsen
; Low level text replace.
34 3 Per Amundsen
on *:PARSELINE:in:*word*:{ var %rep = $gettok($parseline,1-3,32) $replacex($gettok($parseline,4-,32), word, newword | parseline -it %rep }
35 1 Per Amundsen
36 8 Per Amundsen
; Halt a parseline event by setting the text to nothing/$null.
37 7 Per Amundsen
on *:PARSELINE:in:*word*:parseline -it
38
39
; Perform a fake channel message.
40 4 Per Amundsen
//parseline -itq : $+ $ial($me) PRIVMSG $active :Hello world
41 1 Per Amundsen
</pre>