on *:NOTICE:*:#: { ;Notify you that the user just noticed your chan echo -a 4 $+ $nick just noticed $chan $+  ;If the nick is an op, and if you're not an op, don't execute the rest of this script ;To not ban voiced users as well, replace the following line with this: ;if ($nick isop $chan) || ($nick isvoice $chan) || ($me !isop $chan) { halt } if ($nick isop $chan) || ($me !isop $chan) { halt } else { ;Moderate the channel incase it's a large attack mode $chan +m ;Timeban the user for 5 minutes (300 seconds) tb $nick ;Use 'pb $nick' (without '') to permanently ban the user ;Unmoderate the channel after 5 mintues (300 seconds) timer 1 300 mode $chan -m ;Notify you that the user was banned for noticing echo -a 4 $+ Banned $nick for noticing $chan $+  } } alias tb { ban -ku300 $chan $1 2 Channel protection activated. [Auto Banned] inc %kick.number }