Best Black list script

By Ghost-writer on Aug 12, 2009

a Black list script not all the bugs are editted out so if you see any msg but its just a little thing i put together in my spair time :) please positive comments ;x and if you are a grammer nazi looking for me im on irc.swiftirc.net under the nick Termz just msg me all my wrong doings :]

updated minor bugs, now bans address if nick is in chan and the reason is $3- instead of your bots nick lol :P

updated it so now you dont have to write your own deny :P

updated so if there is no reason it just says that o.o :)

on *:join:#: {
  if ($me isop $chan) {
    if ( %blacklist [ $+ [ $address($nick,3) ] ] >= 0 ) {
      mode $chan +b $address($nick,3)
      /cs kick # $nick $nick has been blacklisted for reason : %reasonb [ $+ [ $nick ] ]
      /kick $nick %reasonb [ $+ [ $nick ] ]
    }
  }
}
on $*:text:/^[!@`.]add/Si:#: {
  if ( %admin [ $+ [ $nick ] ] >= 1 ) {
    if ($2 ison $chan) {
      if ( $3 == $null ) {
        /cs kick # $2 blacklisted for reason : %reasonb [ $+ [ $2 ] ]
        set %blacklist [ $+ [ $address($2,3) ] ] 5
        set %reasonb [ $+ [ $2 ] ] no reason specified
      }
      else {
        set %blacklist [ $+ [ $address($2,3) ] ] 5
        set %reasonb [ $+ [ $2 ] ] $3-
        /cs kick # $2 blacklisted for reason : %reasonb [ $+ [ $2 ] ]
      }
    }
    else { 
      set %blacklist [ $+ [ $address$2,3 ] ] 5
      set %reasonb [ $+ [ $2 ] ] $3-
      msg # $nick has been added for %reasonb [ + [ $2 ] ]
    }
  }
}

on $*:text:/^[!@`.]del/Si:#: {
  if ( %admin [ $+ [ $nick ] ] >= 1 ) {
    unset %blacklist [ $+ [ $address($2,3) ] ]
    unset %reasonb [ $+ [ $2 ] ] 
    mode # -b $2
    msg # $2 has been taken off blacklist 
  }
  else {
    notice $nick $read(deny.txt)
  }
}

Comments

Sign in to comment.
Ghost-writer   -  Nov 26, 2009

this script is from a long time ago.. if i wanted i could make this into a damn hash table.

 Respond  
PurplesurgeMirc   -  Nov 26, 2009

Eww....
Checking against $null instead of using the negation operator ! (!$3)
/ in a remote script.

3/10

 Respond  
Ghost-writer   -  Aug 12, 2009

Thanks :P

 Respond  
PATX   -  Aug 12, 2009

if it is the best why are there bugs and mistakes?

4/5
http://txtb.in/3Sl

 Respond  
Ghost-writer   -  Aug 12, 2009

thanks atr lol :P

 Respond  
Atr   -  Aug 12, 2009

I was just tempted to point it out by his opening comment =]

 Respond  
blitzz   -  Aug 12, 2009

Atr, no need for grammar into that..you can make ur own like deny.txt etc..That was just his style..

 Respond  
Atr   -  Aug 12, 2009

'denie'? maybe you mean 'deny'?

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.