All pastes #709494 Raw Edit

Something

public text v1 · immutable
#709494 ·published 2007-09-24 18:48 UTC
rendered paste body
on *:NICK: {
  if ($nick == %Owner) { 
    set %Owner $newnick
  }
}

on *:text:*:#: {
 if ($1 == !kick) {
  if ($IsOwner($nick)) {
    if ($2 == $null) {
     notice $nick Usage: !kick <Nick> | halt }
    kick $2 $chan
  }
 }
}

alias -l IsOwner {
 if ($1 == %Owner) {
  if ($address($1,2) == $address($me,2)) {
   return 1
  }
 }
return 0
}