All pastes #613888 Raw Edit

Untitled

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