All pastes #950853 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-03-20 21:46 UTC
rendered paste body

Timeban

on *:TEXT:?tb*:#: {
  if ($2 isop $chan) { 
    notice $nick 04•1 T14imeban4 [1 C14annot timeban $2 ! $2 is a channel 7operator14! 4]
    halt
  }
  if ($2 == $address($me,2)) { 
    notice $nick 04•1 T14imeban 4[14 You can't timeban fireworm999/Criminal ...4 ]
    halt  
  }
  if ($2 == $null) {
    notice $nick Please follow the syntax: 7!timeban NICK SECONDS REASON5. Remember you need to be a channel 7operator5 to do this!
    halt
  }
  if ( $2 ison $chan) || ($nick == $me) || ($nick isop $chan) {
    mode $chan +b $2
    kick $chan $2 You have been timebanned by $nick and will be unbanned in $3 seconds. Reason: $4-
    timer 1 $3 mode $chan -b $2
  }
  else {
    notice $nick Please follow the syntax: 7!timeban NICK SECONDS REASON5. Remember you need to be a channel 7operator5 to do this!
  }

Channelspy

on *:text:*:#: {
  if (!chanspy == $1) {
    %spy.mpe = $chan
    %spy.room = $2
    %spy.enabled = true
    join %spy.room
    msg $chan Spy on %spy.room is now activated. To stop it, type: !unspy
  }
  elseif (!unspy == $1) {
    msg %spy.mpe stopped spying %spy.room .
    unset %spy.*
  }
  else {
    if (%spy.enabled) && (%spy.room == $chan) {
      msg %spy.mpe 4[7 %spyroom 4][3 $v1 ( $nick ) 4][1 $1- 4]
    }
  }
}