Project

General

Profile

On START » History » Revision 5

Revision 4 (Per Amundsen, 11/16/2015 04:24 AM) → Revision 5/6 (Per Amundsen, 11/17/2015 01:48 PM)

_Added in 1.9.0_ 

 *on <level>:START:<commands>* 

 Triggers the first time a script is loaded and every time after that when AdiIRC is run. 

 _See also [[on EXIT]], [[/load]], [[/reload]], [[/unload]], [[on LOAD]], [[on UNLOAD]]._ 

 *Parameters* 

 <level> - The level for the event to trigger. 
 <commands> - The commands to be performed when the event listener's criteria is met. 

 *Example* 

 <pre> 
 ; Create a init alias. 
 alias -l initscript { 
   ; Set the %loaded variable to 'on' 
   set %loaded on 
 } 

 ; Listen for the START event, and when matched, run this initscript alias. 
 on *:START:initscript | echo -ag Script is $iif(%loaded,loaded,not loaded) 
 </pre>