$eventtarget » History » Revision 2
Revision 1 (Per Amundsen, 01/26/2016 05:14 AM) → Revision 2/9 (Per Amundsen, 01/26/2016 05:15 AM)
_Added in 2.3_ *$eventtarget(type, #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 join,mode,part,topic,quit,ctcp,kick,nick. #channel - The channel to check. *Example* <pre> on ^*:JOIN:*:{ *: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>