Project

General

Profile

[Script] Ignore notice from unregistered users » Ignore notice from unregistered users v0.1.ini

Mr. BS, 04/24/2014 06:13 AM

 
1
; http://dev.adiirc.com/boards/5/topics/178
2
; Ignore notice from unregistered users v0.1
3
; v0.1 by pereba
4

    
5
on ^*:notice:*:*:{
6
  if ($right($1-,1) != $chr(160)) && (!$istok(nickserv;q;chanserv;*status;*q;*broadcast,$nick,59) {
7
    set -e %ucnNick $nick | set -e %ucnAd $address($nick,5) | set -e %ucnMsg $1- | whois $nick | halt
8
  }
9
}
10

    
11
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 } }
12

    
13
raw 330:*:{ if (%ucnNick) { fakeraw : $+ %ucnAd NOTICE $me : $+ %ucnMsg $chr(160) | halt } }
14

    
15
raw 318:*:{ if ($2 == %ucnNick) { unset %ucn* | halt } }
    (1-1/1)