All pastes #613655 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-07-11 03:08 UTC
rendered paste body
ON *:TEXT:!whois*:#: { 
  if ($nick isop $chan) || ($nick ishop $chan) {
    if ($2 == on) { set $+(%,whoisi.,$chan) ON | msg $chan 4Whois7 on join is now:4 ON }
    if ($2 == off) { set $+(%,whoisi.,$chan) OFF | msg $chan 4Whois7 on join is now:4 OFF }
    if ($2 == $null) { msg $chan 4Whois7 on join is currently4 $eval($+(%,whoisi.,$chan),2) $+ } 
  } 
  else { notice $nick 4Only ops or halfops can do that! } 
}
on *:join:#: { 
  set %whois $chan 
  .enable #whois 
  whois $nick 
} 
raw 319:*: {
  if (($eval($+(%,whoisi.,$chan),2) $+ == ON) { msg %whois 7Rsn:4 $2 7is on:4 $3- | halt } 
  raw *:*: { halt } 
}