A simple remote to kick and ban users who change their nicknames 3 times within 30 seconds, for 10 seconds.
on *:NICK:{
if (% [ $+ [ $wildsite ] $+ ] .nflood == $null) { set -u30 % [ $+ [ $wildsite ] $+ ] .nflood 0 }
inc % [ $+ [ $wildsite ] $+ ] .nflood 1
if (% [ $+ [ $wildsite ] $+ ] .nflood >= 3) { kick # $nick Nick flood detected. Banned for 30 seconds. | ban -u30 # $address($nick,1) | echo 2 Nick flood triggered by $nick in # }
}
This is not going to work... for one, nick changes are a server-wide event so they don\'t generate a #channel attached to them... you\'d either have to hardcode a channel into the kickban command, or loop through $comchan. Two... $nick is the OLD nick, you can\'t kick it out, it\'ll give \"no such user\", you need to kickban $newnick.