All pastes #550627 Raw Edit

Untitled

public text v1 · immutable
·published 2007-06-08 14:06 UTC
rendered paste body
on $*:TEXT:/^[!](\bgreets\b)/Si:#: {
  if ($nick ishop $chan) || ($nick isvoice $chan) || ($nick isreg $chan) {
  notice $nick 10Y7ou do 4not7 have the necessary rights to do this! | halt }
  if ($2 == on) {
    if ($($+(%,greets.,$chan),2) == on) {
    notice $nick 10G7reets are already 4on7 for $chan $+ ! | halt }
    /set $($+(%,greets.,$chan)) on {
    notice $nick 10G7reets are now 4on7 for $chan }
    if ($2 == off) {
      unset unset $($+(%,greets.,$chan)) {
      notice $nick 10G7reets are now 4off7 for $chan }
    }
  }
}