!addban/!remban*EDIT*

By WacKy- on Jan 02, 2005

adds the nick you put a to a ini file and if they join your channel you bot will auto kicks saying they are banned, commands " !addban will add " and " !remban will remove "
was bored so i made this =] ' works for multi channels aswell! 'EDITED
it now adds a ban to channel, and will remove them on !remban

on *:TEXT:!addban *:#:{ 
  if ($readini(usersystem.ini,admin,$address($nick,2)) == 500) {
    writeini banned.ini $chan $2 $address($2,3) 
    mode $chan +b $address($2,3)
    kick $chan $2 You Have Been Banned From This Channel!
    msg $chan  $2  (  $address($2,3) b ) Has Been Added To AutoBan List For  $chan  
  }
}

on *:TEXT:!remban *:#:{ 
  if ($readini(usersystem.ini,admin,$address($nick,2)) == 500) {
    /remini banned.ini $chan $2
    mode $chan -b $address($2,3)
    msg $chan  $2   Has Been Removed From AutoBan List. 
    msg $2 You Are Now UnBanned From  $chan IRC Channel!
    /invite $2 $chan
  } 
}

on 1:JOIN:#:{ 
  if ($address($nick,3) == $readini(banned.ini,$chan,$nick)) {
    kick $chan $nick You Are Banned From This Channel! 
  }
}

Comments

Sign in to comment.
PoiXon   -  Jan 03, 2005

i think u should make it ban them aswell cause if the person has auto-join it will flood the chan

 Respond  
DarthReven   -  Jan 03, 2005

not really a ban script more of \"I don\'t like you so everytime you join i\'m going to kick you\" script

 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.