[Script] Ignore notice from unregistered users
Added by Mr. BS about 9 years ago
This script is an attempt to ignore notice from unregistered users. Compatible with most common IRCD where 330 raw outputs RPL_WHOISACCOUNT in format <nick> <authname> :<info>. Experimental code, no guarantees it will work.
Changelog:¶
- v0.1
- Experimental first release.
Script:¶
; http://dev.adiirc.com/boards/5/topics/178 ; Ignore notice from unregistered users v0.1 ; v0.1 by pereba on ^*:notice:*:*:{ if ($right($1-,1) != $chr(160)) && (!$istok(nickserv;q;chanserv;*status;*q;*broadcast,$nick,59) { set -e %ucnNick $nick | set -e %ucnAd $address($nick,5) | set -e %ucnMsg $1- | whois $nick | halt } } Raw *:*:{ if $istok(378 379 307 319 312 301 313 338 310 311 335 614 671 320 317 275 615 616 401,$numeric,32) { if ($2 == %ucnNick) halt } } raw 330:*:{ if (%ucnNick) { fakeraw : $+ %ucnAd NOTICE $me : $+ %ucnMsg $chr(160) | halt } } raw 318:*:{ if ($2 == %ucnNick) { unset %ucn* | halt } }
Thanks kikuchi` for the help to making raw codes check a small single line.