Hi. I'm using this addon that check ON JOIN and ON NICK if nick is included in bnicks.txt.
So if nick is included in the file, so the user receive a kick/ban:
on !*:JOIN:#CHANNEL:{
var %idmask $remove($gettok($gettok($address($nick,5),1,64),2,33),~)
var %x = 1
while (%x <= $lines($mircdirbnicks.txt)) {
if ($read(bnicks.txt,%x) iswm %idmask) {
cs ban $chan +3600 $+(*!*,$v1,*@*) NICK NOT ALLOWED ! | /write $mircdir $+ banemule.txt *Badnick* $date $time $nick ---> $address
}
if ($read(bnicks.txt,%x) iswm $nick) {
cs ban $chan +3600 $+(*,$v1,*!*@*) NICK NOT ALLOWED ! | /write $mircdir $+ banemule.txt *Badnick* $date $time $nick ---> $address
}
inc %x
}
}
on *:NICK:{
var %i = 1, %badwords = 1
while (%i <= $comchan($newnick,0)) {
if ($comchan($newnick,%i) != #eMule-Italian) { break }
if ($newnick !isop $comchan($newnick,%i)) && ($newnick !ishop $comchan($newnick,%i)) && ($newnick != $me) {
while (%badwords <= $lines(bnicks.txt)) {
if ($read(bnicks.txt,%badwords) iswm $newnick) {
cs ban $chan +3600 $+(*,$v1,*!*@*) NICK NOT ALLOWED ! | /write $mircdir $+ banemule.txt *Badnick* $date $time $newnick ---> $address($newnick,5)
}
inc %badwords
}
}
inc %i
}
}
It already save all the + % @ & ~ users, but because I have some troll users who use to wear a nick that recall ircop/ircap , I'd like to add an exception for them too, because in the channel , they don't have any status (so they looks normal users) , so they receive kick/ban too.
So I think addon should has to check mask.
I plan to make a exceptednick.txt and write allowed nicks/masks.
These are ircop/Ircap part of masks:
*!*@ServicesAdmin.*
*!*@NetAdmin.*
*!*@*.NETNAME.org
*!*@NL.IrcOp.NETNAME.org
Thanks for help
Отредактировано Chandra (26.08.2025 14:14)

Really thanks again


