Project

General

Profile

On TEXT » History » Revision 7

Revision 6 (Per Amundsen, 02/16/2017 10:32 AM) → Revision 7/8 (Per Amundsen, 02/24/2017 09:33 PM)

_Added in 1.8.10_ 

 *<notextile>on <level>:TEXT:<matchtext>:<*|#|?>:<commands></notextile>* 

 Triggers whenever a message is received. 

 _See also [[on ACTION]], [[on NOTICE]]._ 

 _Haltable using ^_ 

 *Parameters* 

 <level> - The [[User Access Level|level]] level for the event to trigger. 
 <matchtext> - The [[Matchtext]] to listen to. 
 <*|#|?> - The [[Matchtarget]] to listen to. 
 <commands> - The commands to be performed when the event listener's criteria is met. 

 *Example* 

 <pre> 
 on *:TEXT:*:#:echo -ag Message $1- from $nick on channel $chan 

 ; Override the text event to print a custom text and then tell AdiIRC to ignore it's own text. 
 on ^*:TEXT:*:*:{ 
   echo -tbf $target $+(<,$nick,>:) $1- 
   halt 
 } 

 ; Ignore all messages containing badword on all channels. 
 on ^*:TEXT:*badword*:*:halt 

 ; Ignore all messages starting with !badword on a specific channel. 
 on ^*:TEXT:!badword*:#channel:halt 
 </pre>