All pastes #469892 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-05-03 23:13 UTC
rendered paste body
;;;;INSTRUCTIONS:
;;;;/Blacklist <Nick> <Reason> 
;;;;To blacklist a user currently on the active channel
;;;;;
;;;;/Blacklisthost <@host> <reason>
;;;;To blacklist a User's host
;;;;;
;;;;/unblacklisthost <@host> 
;;;;to remove a host from the blacklist
;;;;;
;;;;The Reason can be anything, multiple words etc.
;;;;;

on *:JOIN:#99skillz: {
  if ($me isop $chan || $me ishop $chan) {
    if ($readini(blacklist.ini,Address,$address($nick,2))) {
      ban -k $chan $nick 2 2Blacklisted:15 $readini(blacklist.ini,Address,$address($nick,2))
    }
  }
}

alias blacklist { 
  if ($2- != $null) {
    writeini blacklist.ini Address $address($1,2) $2-
    echo -a 5—› 14Blacklisted:2 $1 $+ 5(2 $+ $address($1,2) $+ 5) 14for 5(2 $+ $2- $+ 5)
    if ($1 ison $chan) {
      kb $1 2Blacklisted for:15 $2-
    }
  }
  elseif ($2 == $null) {
    writeini blacklist.ini Address $address($1,2) Obviously, you made me dislike you.
    echo -a 5—› 14Blacklisted:2 $1 $+ 5(2 $+ $address($1,2) $+ 5) 14for 5(2Unspecified5)
    if ($1 ison $chan) {
      kb $1 2Blacklisted for:15 Something made me dislike you...
    }
  } 
}

alias blacklisthost { 
  if ($2- != $null) {
    writeini blacklist.ini Address *!* $+ $1 $2-
    /gban $1
    msg $chan 5—› 14Blacklisted: 5(2*!* $+ $1 $+ 5) 14for 5(2 $+ $2- $+ 5)
    echo -a 5—› 14Blacklisted: 5(2*!* $+ $1 $+ 5) 14for 5(2 $+ $2- $+ 5)
  }
  elseif ($2 == $null) {
    writeini blacklist.ini Address *!* $+ $1 Obviously, you made me dislike you.
    /gban $1
    echo -a 5—› 14Blacklisted: 5(2*!* $+ $1 $+ 5) 14for 5(2Unspecified5)
    msg $chan 5—› 14Blacklisted: 5(2*!* $+ $1 $+ 5) 14for 5(2Unspecified5)
  } 
} 

alias unblacklisthost {
  remini blacklist.ini Address *!* $+ $1-
  /gunban $1
  echo -a 5—› 14Removed from Blacklist: 5(2 $+ $1 $+ 5)
}