I'm on a server that keeps sending server notices to me, and I want to block those. Network has to send them, socan't be shut off..I just want a small script or piece of code that blocks server notices. Maybe something that doesn't block ALL, but just those sending specific words I can set.
You can use the on snotice event to catch server notice (/help on notice) and you can use the ^ prefix with the /haltdef command to prevent the text from being printed in the channel window (I used /halt cause once a match is found, there's no need to keep looking)
Code:
alias -l tohalt return the list of word goes here
on ^*:snotice:*:{
if ($network == the_network) {
var %a 1,%t $strip($1-),%l $tohalt
while ($gettok(%l,%a,32)) {
if ($istok(%t,$v1,32)) halt
inc %a
}
}
}
Edit the network's name and the list of word in the alias 'tohalt'
#mircscripting @ irc.swiftirc.net == the best mIRC help channel