Project

General

Profile

Parseline » History » Revision 10

Revision 9 (Per Amundsen, 12/14/2019 10:02 AM) → Revision 10/11 (Per Amundsen, 02/16/2023 02:55 PM)

_Added in 1.9.7_ 

 */parseline -iotbqpnuN [text|&binvar]* 

 Modifies the incoming/outgoing server line if used inside [[on PARSELINE]] event or to queue a new fake line. 

 _This feature should only be used for testing or adding features not yet available in AdiIRC._ 

 See also [[$parseline]] [[$parsetype]] [[$parseutf]].  

 *Switches* 

 table(ktable). 
 |*Switch*|*Description*| 
 | -i | - Specifies an incoming line. | 
 | -o | Specifies -Specifies an outgoing line. | 
 |  
 -t | - Specifies text is defined. | 
 | -b | - Specifies &binvar is defined. | 
 |  
 -q | -    Add a new fake line to the end of the input/output queue | 
 | -p | - Used with -q to indicate that the new line should trigger the [[on PARSELINE]] event. | 
 | -n | - Adds a [[$crlf]] to the end of the line if it does not have one. | 
 | -uN | - *TODO* | 

 *Parameters* 

 table(ktable). 
 |*Parameter*|*Description*| 
 | text<notextile>|</notextile>&binvar | text|&binvar - Text or &binvar. | 

 *Example* 

 <pre> 
 ; Low level text replace. 
 on *:PARSELINE:in:*word*:{ var %rep = $gettok($parseline,1-3,32) $replacex($gettok($parseline,4-,32), word, newword | parseline -it %rep } 

 ; Halt a parseline event by setting the text to nothing/$null. 
 on *:PARSELINE:in:*word*:parseline -it 

 ; Perform a fake channel message. 
 //parseline -itq : $+ $ial($me) PRIVMSG $active :Hello world 
 </pre>