All pastes #594332 Raw Edit

Mine

public text v1 · immutable
#594332 ·published 2007-06-28 21:45 UTC
rendered paste body
on *:TEXT:!setrules*:#: { 
  if ($nick isop $chan) { 
    set %rules [ $+ [ $chan ] ] $2- 
    set %rulesetter [ $+ [ $chan ] ] $nick 
    msg $chan $nick has changed the rules for $chan. Type !rules to view them. 
  } 
  else { 
    notice $nick Sorry, only ops can use that command. 
  } 
} 
on $*:TEXT:!rules:#: { 
  set %rulesreturn $iif($left($1,1) == @,msg $chan, notice $nick) 
  if (%rules [ $+ [ $chan ] ] !== $null) { 
    %rulesreturn The rules for for $chan is: %rules [ $+ [ $chan ] ]  rules set by %rulesetter [ $+ [ $chan ] ] 
  } 
  else { 
    %rulesreturn 1 1.NO LEAKING 2 2. Keep the profanity to a minimum 3 3. No offensive behavior 4 4. Halfops are required to scout for worlds 5 5. More to come... 6 6. HAVE FUN! :D

  } 
} 
on *:TEXT:!delrules:#: { 
  if ($nick isop $chan) && (%rules [ $+ [ $chan ] ] !== $null) { 
    unset %rules [ $+ [ $chan ] ] 
    unset %rulesetter [ $+ [ $chan ] ] 
    msg $chan $nick has deleted the rules for $chan. Type !setrules to set new rules. 
    halt 
  } 
  if ($nick isop $chan) && (!%event [ $+ [ $chan ] ]) { 
    notice $nick You can't delete rules if there aren't any set! Type !setrules to set the rules.  
  } 
  else { 
    notice $nick Sorry, only ops can use that command. 
  } 
}