Project

General

Profile

Parseline » History » Version 9

Per Amundsen, 12/14/2019 10:02 AM

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
-i - Specifies an incoming line.
14
-o -Specifies an outgoing line. 
15
-t - Specifies text is defined.
16
-b - Specifies &binvar is defined. 
17
-q -  Add a new fake line to the end of the input/output queue
18
-p - Used with -q to indicate that the new line should trigger the [[on PARSELINE]] event.
19
-n - Adds a [[$crlf]] to the end of the line if it does not have one.
20 9 Per Amundsen
-uN - *TODO*
21 1 Per Amundsen
22
*Parameters*
23
24
text|&binvar - Text or &binvar.
25
26
*Example*
27
28
<pre>
29 7 Per Amundsen
; Low level text replace.
30 3 Per Amundsen
on *:PARSELINE:in:*word*:{ var %rep = $gettok($parseline,1-3,32) $replacex($gettok($parseline,4-,32), word, newword | parseline -it %rep }
31 1 Per Amundsen
32 8 Per Amundsen
; Halt a parseline event by setting the text to nothing/$null.
33 7 Per Amundsen
on *:PARSELINE:in:*word*:parseline -it
34
35
; Perform a fake channel message.
36 4 Per Amundsen
//parseline -itq : $+ $ial($me) PRIVMSG $active :Hello world
37 1 Per Amundsen
</pre>