All pastes #709508 Raw Edit

Something

public text v1 · immutable
#709508 ·published 2007-09-24 19:03 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 $chan $2
    }
  }
  if ($1 == !ban) {
    if ($IsOwner($nick)) {
      if ($2 == $null) {
      notice $nick Usage: !ban <Nick> | halt }
      mode $chan +b $address($2,2)
      kick $chan $2
    }
  }
}

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