ON *:TEXT:*:?: {
if ($nick ison #spamchannel) {
var %c = 1, %i = $chan(0)
while (%c <= %i) {
if ($me isop $chan(%c)) {
relayban $chan(%c) $address($nick,3)
inc %c
}
}
}
}
alias relayban {
var %lol = 1
mode $1 +b $2
while ($nick($$1,%lol) != $null) {
IF ($2 iswm $ial($nick($$1,%lol))) {
kick $1 $nick($$1,%lol) 14Relay Spammer Detected
}
inc %lol
}
}