All pastes #822855 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-12-19 00:27 UTC
rendered paste body
alias globalban {
  if ($2 == $null) { beep 2 2 | echo -ta you must give a name of the person your banning along with a reason. | halt }
  var %x = 1
  while (%x <= $chan(0)) {
    if (($me isop $chan(%x)) || ($me ishop $chan(%x)))  {    mode $chan(%x) +bbb $address($1,3) $address($1,2) $1 | msg $chan(%x) $1 was Globaly banned for $2- }
    if ($1 ison $chan(%x)) { mode $chan(%x) -o $1- | kick $chan(%x) $1 You have been banned for $2-
      inc %x
    }
    elseif (($me !isop $chan(%x)) && ($me !ishop $chan(%x))) msg $chan(%x)) { I'm not an op here. $1 was globaly banned for $2- }
    inc %x
  }
} 

alias gone { 
  set %away [ $+ [ reason ] ] $1- 
  set %ctime $ctime 
  set %away [ $+ [ status ] ] ON 
  nick XxxDisturbedxxX 
  amsg 10»4Ãway10« 12®eason: %away [ $+ [ reason ] ] 4- 7Left at $time
  away $1- 

} 
alias back { 
  if (%away [ $+ [ status ] ] == ON) { 
    nick XxxDisturbed
    amsg 10»4ßa©k10« 12®eason: %away [ $+ [ reason ] ] $+ 14. I was gone for4 $duration($calc($ctime - %ctime)) $+ . 
    away 
  } 
  elseif (%away [ $+ [ status ] ] == $null) { 
    echo -ast I am not away! 
  } 
}