Project

General

Profile

$eventtarget » History » Revision 8

Revision 7 (Per Amundsen, 06/02/2018 05:04 PM) → Revision 8/9 (Per Amundsen, 08/18/2021 09:37 PM)

_Added in 2.3_ 

 *$eventtarget(type, [channel], [nick])* [channel])* 

 Returns the event target settings for a event type/channel. 

 0 = In Channel. 
 1 = In Status. 
 2 = Hide. 

 _Number is relative to the event dropdowns._ 

 *Parameters* 

 type - Event type to check (Join,Mode,Part,Topic,Quit,Ctcp,Kick,Nick,Names,Away,Invite,Whois,Error,Private,Wallops,Notice,Motd,SNotice,PingPong). 
 [channel] - The channel to check. (If no channel is specified, the global value is returned) 
 [nick] - if specified, the nick to check for the "[[Messages_Options#Only-show-join-parts-quits-nick-from-active-users|Only show join parts quits nick from active users]]" option. 

 *Example* 

 <pre> 
 on ^*:JOIN:*:{ 
   if ($eventtarget(join, #) == 2) { 
     ; Hide 
     halt 
   } 

   if ($eventtarget(join, #) == 1) { 
     ; Show in status window. 
     echo -s $nick joins # 
   } 
   else { 
     ; Show in channel window. 
     echo # $nick joins # 
   } 

   halt 
 } 
 </pre>