All pastes #597971 Raw Edit

Someone

public text v1 · immutable
#597971 ·published 2007-06-30 23:31 UTC
rendered paste body
on *:TEXT:!mute*:#Mainpc:{
  if ($nick isop $chan ) || ($nick ishop $chan) && ($2 !isop $chan) || ($nick isvoice $chan) && ($2 !ishop $chan) && ($2 !isop $chan) {
    if ($2 !ison $chan) { notice $nick Sorry but the user you specified is not on the channel. | Halt }
    if ($3 == $null) { notice $nick You must specify the amount of minutes. Useage: !mute nickname numberofminutes | Halt }
    mode $chan +b ~q: $+ $address($2,2)
    msg $chan Muted $2 $+ ( $+ $address($2,2) $+ ) for $3 minutes. Noobs muted: %t
    /timer $+ %t 1 $calc($3 * 60) /mode $chan -b ~q: $+ $address($2,2) 
    inc %t 1
  }
}

on *:TEXT:!unmute*:#mainpc:{
  if ($nick isop $chan) || ($nick ishop $chan) || ($nick isvoice $chan) {
    if ($2 !ison $chan) { notice $nick Sorry but the user you specified is not on the channel. | Halt }
    mode $chan -b ~q: $+ $address($2,2)
  }
}

on *:TEXT:!cban*:#:{
  if ($nick isop $chan) || ($nick ishop $chan)  || ($nick isvo $chan) {
    mode $chan +b ~c: $+ $2
  }
}

on *:TEXT:!uncban*:#:{
  if ($nick isop $chan) || ($nick ishop $chan)  || ($nick isvo $chan) {
    mode $chan -b ~c: $+ $2
  }
}