All pastes #613606 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-07-11 02:21 UTC
rendered paste body
on *:TEXT:!lock*:#: {
  if ($me isop $chan) {
    if ($nick isop $chan) {
      if ($2 == on) { set %chanlock,$chan LOCKED | mode $chan +mi | msg $chan 4Channel has been Locked! 7Type !lock off to unlock }
      if ($2 == off) { set %chanlock,$chan UNLOCKED | mode $chan -i | msg $chan 4Channel has been Unlocked! 7Type !lock on to lock }
      if ($2 == $null) { msg $chan 7 $chan 's Security is Currently:4 %chanlock,$chan } 
    }
    else { notice $nick 4You must be an Op to do that! }
  }
  else { notice $chan 4I must be an Op to do that! }
}