Project

General

Profile

Parseline » History » Version 5

Per Amundsen, 08/02/2015 04:41 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 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
-uN - TODO
21
22
*Parameters*
23
24
text|&binvar - Text or &binvar.
25
26
*Example*
27
28
<pre>
29 3 Per Amundsen
; low level text replace
30
on *:PARSELINE:in:*word*:{ var %rep = $gettok($parseline,1-3,32) $replacex($gettok($parseline,4-,32), word, newword | parseline -it %rep }
31 4 Per Amundsen
32
; fake channel message
33
//parseline -itq : $+ $ial($me) PRIVMSG $active :Hello world
34 1 Per Amundsen
</pre>