All pastes #597968 Raw Edit

Anonymous

public text v1 · immutable
#597968 ·published 2007-06-30 23:21 UTC
rendered paste body
on *:TEXT:!*:#: {
  if (($1 == !world) || ($1 == !pcw)) {
    if ($nick !isreg $chan) {
      notice $nick The current world is %world set by %setby $duration($calc($ctime - %worldsettime)) ago.
    }
    else {
      notice $nick You need to be a voice to see the world.
    }
  }
  if ($1 == !setworld) {
    if (($nick isop $chan) || ($nick ishop $chan)) {
      set %world $2
      set %setby $nick
      set %worldsettime $ctime
      msg $chan A new world has been set! Type !world to see it.
      notice $nick Its advised you use: /msg $me !setworld world :to set a world, so other people in the channel can't see it.
    }
  }
  if ($1 == !tb) {
    if (($nick isop $chan) || ($nick ishop $chan)) {
      if (($2 isreg $chan) || ($2 isvoice $chan)) {
        /ban -ku $+ $calc(60 * $3) $chan $2 $4-
      }
    }
  }
  if ($1 == !aov) {
    if (($nick isop $chan) || ($nick ishop $chan)) {
      writeini aov.ini $2 ip $address($2,2)
      msg $chan $2 added to autovoice list.
      mode $chan +v $2
    }
  }
  if ($1 == !delaov) {
    if (($nick isop $chan) || ($nick ishop $chan)) {
      remini aov.ini $2
      msg $chan $2 removed from autovoice list.
      mode $chan -v $2
    }
  }
}

on *:TEXT:!*:?: {
  if ($1 == !setworld) {
    if (($nick isop #the_pc-elite) || ($nick ishop #the_pc-elite)) {
      set %world $2
      set %setby $nick
      set %worldsettime $ctime
      msg #the_pc-elite A new world has been set! Type !world to see it.
    }
  }
}

on *:JOIN:#: {
  if ($readini(aov.ini,$nick,ip) == $address($nick,2)) {
    mode $chan +v $nick
  }
}