1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
on *:text:*:*: {
if ($address($nick,2) != *!*@PL.IrcOP.Maxima.org.pl) && ($address($nick,2) != *!*@PL.ServicesAdmin.Maxima.org.pl) && ($address($nick,2) != *!*@PL.HelpOP.Maxima.org.pl) {
set %spam.6 %spam.5
set %spam.5 %spam.4
set %spam.4 %spam.3
set %spam.3 %spam.2
set %spam.2 %spam.1
set %spam.1 $1-
.timer1antispams 1 1 /dec %spam.inc
if ($1- == %spam.1) && ($1- == %spam.2) && ($1- == %spam.3) && ($1- == %spam.4) && ($1- == %spam.5) && ($1- == %spam.6) {
inc %spam.inc
set %spam.nick $addtok(%spam.nick,$nick,32)
.timer1antispam 1 8 /unset %spam.*
if (%spam.inc >= 8) {
.timer1aspam $+ $r(a,z) $+ $r(a,z) $+ $r(a,z) $+ $r(a,z) $+ $r(a,z) $+ $r(a,z) 1 1 /kspams
}
}
}
}
alias kspams {
var %x = 1
while (%x <= $gettok(%spam.nick,0,32)) {
/kill $gettok(%spam.nick,%x,32) :Antispam script %spam.1
inc %x
}
.timer1aspam* off
.timer1antispam* 1 0 /unset %spam.*
}
|