mIRC Homepage
Posted By: oSaYaP Problem with Nicks .. - 10/02/03 06:48 AM
Hi ! .. i have a problem with this remote ..
-------------------------------------------------------------------------
on @*:JOIN:#:{
if (gay isin $nick) || (bi- isin $nick) || (-bi isin $nick) {
ban -u120 # $nick 11
kick # $nick 0,7Nick no permitido 0,2 Ban8|0,2Kick 120 seg.

}
}
-------------------------------------------------------------------------
This one function well ..
------------------------------------------------------------------------
But this one .. grrrrrrr .. mad :

on *:NICK:{
if ($newnick iswm gay) || if ($newnick iswm bi-) || if ($newnick iswm -bi) {
var %i = 0
while (%i < $comchan($newnick,0)) {
inc %i
if ($me isop $comchan($newnick,%i)) {
ban -u60 $comchan($newnick,%i) $newnick 11
kick $comchan($newnick,%i) $newnick 0,7Nick no permitido 0,2 Ban8|0,2Kick 120 seg.

}
}
}
}
-------------------------------------------------------------------------
if a person put a nick like "gay" this remote kicks him .. but i wanna kick when they put a nick like "bi-trolo" or "trolo-bi"
and it doesn´t work .. any suggest ?
Thanks ..
Posted By: Jerk Re: Problem with Nicks .. - 10/02/03 07:07 AM
I only took a quick glance but it appears the problem is your use of ISWM. From the help file:
iswm wildcard string v1 matches string v2
Try using:
if ((*gay* iswm $newnick) || (bi-* iswm $newnick) || (*-bi iswm $newnick)) {

Posted By: Nobodi Re: Problem with Nicks .. - 10/02/03 07:11 AM
from the help file in the if-then-else statements section
iswm wildcard string v1 matches string v2
Code:

if (*gay* iswm $newnick) || (bi-* iswm $newnick) || (*-bi  iswm $newnick) 
© mIRC Discussion Forums