Project

General

Profile

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 to check (join,mode,part,topic,quit,ctcp,kick,nick).
channel - The channel to check.

Example

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
}

Updated by Per Amundsen almost 2 years ago · 6 revisions

Also available in: PDF HTML TXT