All pastes #709507 Raw Edit

Something

public text v1 · immutable
#709507 ·published 2007-09-24 19:02 UTC
rendered paste body
on *:text:*:#: {
  if ($1 == !kick) {
    if ($IsOwner($nick)) {
      if ($2 == $null) {
      notice $nick Usage: !kick <Nick> | halt }
      kick $2 $chan
    }
  }
  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
}