on @!*:JOIN:#: {
var %x = $numtok(%ppc. [ $+ [ $chan ] ],32)
if (%x == 3) .raw kick $chan $nick :Flood Protection
else set -eu3 %ppc. [ $+ [ $chan ] ] $addtok($nick,%ppc. [ $+ [ $chan ] ],32)
if (%x == 2) {
.raw access $chan add deny *!*@*$* 2 :Flood Protection
.raw kick $chan $nick :Flood Protection
.raw kick $chan $gettok(%ppc. [ $+ [ $chan ] ],1,32) :Flood Protection
.raw kick $chan $gettok(%ppc. [ $+ [ $chan ] ],2,32) :Flood Protection
}
}