All pastes #628763 Raw Edit

Stuff

public text v1 · immutable
·published 2007-07-21 17:18 UTC
rendered paste body
on *:TEXT:!whois*:#: { 
  if ($nick isop $chan || $nick ishop $chan) { 
    if ($2 == on) { 
      if (%whois [ $+ [ $chan] ] != on) { 
        set %whois [ $+ [ $chan ] ] on 
        msg $chan Whois on join has been enabled for $chan by $nick $+ . 
      } 
      else { 
        notice $nick Whois on join is already on for $chan $+ . | halt 
      } 
    } 
    elseif ($2 == off) { 
      if (%whois [ $+ [ $chan ] ] == on) { 
        set %whois  [ $+ [ $chan ] ] off 
        msg $chan Whois on join has been disabled for $chan by $nick $+ . 
      } 
      else { 
        notice $nick Whois on join is allready off for $chan $+ . 
      } 
    } 
  } 
} 
on *:JOIN:#:{ 
  if (%whois [ $+ [ $chan] ] == on) { 
    set %whois $chan
    whois $nick 
  } 
} 
raw 319:*:{ 
  if (%whois) { 
    msg %whois $2 is currently on: $3- 
    unset %whois 
  } 
}