All pastes #544656 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-06-06 15:09 UTC
rendered paste body
on *:JOIN:#:{
  if (%whois. [ $+ [ $chan ] ] == on) {
    set %whois $chan
    whois $nick
  }
}
raw 319:*:{
  if (%whois) {
    msg %whois 7,2--- $2 --- is on: >>> $3- <<<
    unset %whois
  }
}
on $*:TEXT:/^[!@.]whois/Si:#:{
  if ($nick isop $chan || $nick ishop $chan) {
    if (!$2) {
      if (!%whois. [ $+ [ $chan ] ]) {
        set %whois. [ $+ [ $chan ] ] on
        notice $nick Whois is now on
      }
      else { notice $nick Whois is currently %whois. [ $+ [ $chan ] ] }
    }
    elseif ($2 == off) {
      set %whois. [ $+ [ $chan ] ] off
      notice $nick Whois is now off
    }
    elseif ($2 == on) {
      set %whois. [ $+ [ $chan ] ] on
      notice $nick Whois is now on
    }
  }
}