It will auto kick and ban the person trying to kb you...
This only works on IRC Services/Inspircd I am not sure why it won't work on unreal/anope.It generates a lot of text and can be annoying.
on *:ban:#:
if ($banmask iswm $address($me,5)) (($me isop #))
.mode $chan -b $banmask | /cs unban $chan | echo $chan Lamer Dected }
if ($me isop $chan) { .mode $chan -bov+b $banmask $nick $nick $address($nick,1) }