mIRC Home    About    Download    Register    News    Help

Print Thread
#10419 10/02/03 06:48 AM
Joined: Jan 2003
Posts: 48
O
oSaYaP Offline OP
Ameglian cow
OP Offline
Ameglian cow
O
Joined: Jan 2003
Posts: 48
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 ..


-= Porque pese a todo Dios .. aún te tengo fé =-
#10420 10/02/03 07:07 AM
Joined: Dec 2002
Posts: 169
J
Vogon poet
Offline
Vogon poet
J
Joined: Dec 2002
Posts: 169
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)) {


#10421 10/02/03 07:11 AM
Joined: Dec 2002
Posts: 191
N
Vogon poet
Offline
Vogon poet
N
Joined: Dec 2002
Posts: 191
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) 


Link Copied to Clipboard