on ^*:notice:*:*: {
if ($1- == %repeatednotice) {
haltdef
}
else set %repeatednotice $1-
}
Try that. It should prevent 2+ consecutive repeated notices. It won't prevent a repeated notice that has some other notice between the repeats:
-Bot- Hello
-Bot2- Bye
-Bot- Hello
(The second Hello wouldn't be blocked because of the Bot2 message in the middle)
Remember that to haltdef text, you need to use ^ or it won't halt.