Revolving Door Kicker

By `Node_ on Mar 09, 2004

This will ban a user for 60 seconds if he/she joins and parts within 5 seconds of joining.

on *:JOIN:#:{
if (% [ $+ [ $wildsite ] $+ ] .rd == $null) { set -u5 % [ $+ [ $wildsite ] $+ ] .rd on }
}
on *:PART:#:{
if (% [ $+ [ $wildsite ] $+ ] .rd != $null) { ban -u60 # $address($nick,1) | echo 2 Revolving Door triggered by $nick in # }
}

Comments

Sign in to comment.
sailoreagle   -  Mar 18, 2004

Small typo in this one ... \"set -u 5\" will give: \"/set: invalid parameters\" - because there\'s an extra space between -u and 5. I\'d also suggest setting the variable per channel (ie. putting a $chan in the variable)... so if somebody joins a channel you\'re in and parts another one within 5 secs, they don\'t end up being banned.

 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.