Protection Script

By NightCrawler on Jul 12, 2007

This is a protection simple protection script. It has conditions in case of a kick and ban. On kick, it will invite you back then kick $nick that kicked you. on ban, it will remove ban, and ban $nick that banned you. Some might find it quiet useful.

on *:kick:#: { 
  if ($knick == $me) && ($me isop $chan) {
    cs invite $chan $me 
    cs unban $chan $me 
    cs akick $chan clear
    timer 1 1 join $chan 
    timer 1 1 kick $chan $nick  Nice try noob 
    timer 1 2 cs akick $chan add $address($nick,4) This Ban Was Resulted Because You Banned Me.

Comments

Sign in to comment.
dataprofile   -  Sep 11, 2007
mode $chan +bbbbb $nick $address($nick,1) $address($nick,2) $address($nick,3) $address($nick,4) $address($nick,5) 

Change it to that or just remove 2 of the +b\'s.

 Respond  
Akishoot   -  Sep 11, 2007

I think that\'s 3 actually.

$nick $address($nick,1) $address($nick,2)

Wouldn\'t that ban the nickname AND the two addresses? Not sure, forgive me if I\'m wrong :3 But yeah, either way, you\'ve got too many +b\'s listed :\

 Respond  
guest598594   -  Sep 11, 2007
mode $chan +bbbbb $nick $address($nick,1) $address($nick,2)

you are trying to ban five things when you only list two :/

 Respond  
Akishoot   -  Sep 11, 2007

A few things could be changed...

For example:

on *:KICK:#: { 
  if ($knick == $me) {
    cs invite $chan
    cs kick $nick 4P5a9y3b12a15c11k
  } 
}
on *:BAN:#: { 
  if ($bnick == $me) {
    cs unban $chan
    cs invite $chan
    mode $chan +bbb $nick $address($nick,1) $address($nick,2)
  }
}
 Respond  
DarkWarrior   -  Jul 12, 2007

Ok first problem:

if (%knick == $me) {

if (%bnick == $me) {

That should be:

if ($knick == $me) {

if ($bnick == $me) {

Or else it will retaliate on ever single ban and kick made. And than when those fixes are made, it will try to protect even you dont have status. Which can probably lead to lagging. It needs work, even to call it simple. Sorry if I sound harsh dude, but its the truth.

 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.