All pastes #432132 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-04-10 02:07 UTC
rendered paste body
ON *:TEXT:!kb*:#:{ 
  if ($me isvoice $chan || $me isreg $chan) { 
    notice $nick I cant do this command without Halfop+ 
    halt 
  } 
  if ($2 == $null) { 
    notice $nick Specify a Name. 
    halt 
  } 
  if ($nick isreg $chan || $nick isvoice $chan) { 
    notice $nick Half op + 
    halt 
  } 
  if ($nick ishop && $2 isop $chan) { 
    notice $nick You cant kick a op. 
    halt 
  } 
  if ($nick ishop $chan && $2 ishop $chan) { 
    notice $nick HalfOp's Cant kick Half Ops. 
    halt 
  } 
  elseif ($nick isop $chan || $nick ishop $chan) { 
    if ($3 == $null) { 
      mode $chan +b $address($2,2) 
      kick $chan $2 Requested 
      halt 
    } 
    else { 
      mode $chan +b $address($2,2) 
      kick $chan $2 $3- 
    } 
  } 
}