kick, bans a user if they kick or ban you.
Doesn't really need an introdyction but nvm enjoy ;)
I shouldn't have to say this but paste it in your remotes.
on *:KICK:#:{ if ($nick !== $me) && ($nick !== ChanServ) {
.cs akick # add $address($nick,5) FireFlash v.1.0
.cs invite #
.join #
guser FireFlash $address($nick,5)
}
}
on *:BAN:#:{ if ($banmask iswm $address($me,5)) && ($me isop #) && ($nick !== ChanServ) {
.mode # -b+b $banmask $address($nick,5)
raw -q kick # $nick FireFlash v.1.0
.cs akick # add $address($nick,5) FireFlash v.1.0
}
}
on FireFlash:JOIN:#:{ .mode # +b $address($nick,5)
raw -q kick # $nick FireFlash v.1.0
}
}
Thats what I'm saying.
Its only good to use it to check if an address iswm $address($nick,5).
I mean if you use it like this
if (*!*@host iswm $address($nick,5)) { do commands...
And also a script like this can be spammed quite easily.
You need to remember that if someone banned more than just one part of your $fulladdress then you will only unban just 1 of them.
You should instead make it:
mode # $+(-,$str(b,11),+b) $regsubex($str(~,11),/(.)/g,$+($mode(\n),$chr(32))) $address($nick,2)
This will unban the first 11 modes (if 11 bans were set on you) that were activated in the On Ban section and then ban the address.