mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2004
Posts: 27
P
parvez Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Apr 2004
Posts: 27
Hi again!

I have this code in my remote
Code:
 on *:text:w w w . m i r c . c o m*:#bangladesh: { /gzline $nick 5d5m5h5s 12ZUCKKK OFF BASTOR } 
} 


* I removed the actual website because I don't want anyone to think i am advertising. I used mirc is an example.

When someone types that in #bangladesh, it's more like when someone floods with that text. How come my remote does not pick it up and gzline it?

Any solutions?

Thanks!

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
I assume you have access to the gzline command? smile

You have the web site with spaces in it... that may just be for your example, but if not, that could be the problem. Also, I'd suggest putting a * in front of the trigger text as well... *www.mirc.com* so it catches it anywhere in the text, rather than just at the beginning of the line. It will also allow it to catch http://www.mirc.com/ by doing that.

Just as one other note... you have an extra } at the end. It won't hurt having it there, but it's not needed.


Invision Support
#Invision on irc.irchighway.net
Joined: Apr 2004
Posts: 27
P
parvez Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Apr 2004
Posts: 27
Yep, I do. I am a Service-Administrator there. I have access to almost everything even oper-serv.

I put the spaces because that person keeps on flooding with spaces. I know I already glined that person before. Maybe like 100times but there are always socks 4 and 5. I just need the code to be fixed and nothing else.

If I put as *mirc.com*, do you think it will also gline when you type m i r c .com with spaces?

Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Quote:
Hi again!

I have this code in my remote
Code:
 on *:text:w w w . m i r c . c o m*:#bangladesh: { /gzline $nick 5d5m5h5s 12ZUCKKK OFF BASTOR } 
} 


* I removed the actual website because I don't want anyone to think i am advertising. I used mirc is an example.

When someone types that in #bangladesh, it's more like when someone floods with that text. How come my remote does not pick it up and gzline it?

Any solutions?

Thanks!


2 Methods of determining w w w . m i r c . c o m in text events well theres more but heres 2 so you get the point #1 we have iswm aka IS WORD MATCH this method detects both www.mirc.com and w w w . m i r c . c o m and nothing else.

on *:TEXT:*:#bangladesh:{
if (*W*W*W*.*M*I*R*C*.*C*O*M iswm $1-) { msg # mIRC dot Com j00rself }
}

#2 method is to remove spaces on incoming text, isin can be evaluated.

on *:TEXT:*:#bangladesh:{
if (www.mirc.com isin $remove($1-,$chr(32))) { msg # mIRC dot Com j00rself }
}

btw the msg # can be changed to whatever command to be performed


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
they are liekly not spaces
u could use *m*i*r*c*.*c*o*m* this would cover almost anything spaces hardspaces underlines, color changes etc

And the chance that someone elses text well have all those letters scatered in them in there text in that specific order of the "real web site" i highly doubt. (well im not in ya channel so i dont care actully!)

Joined: Oct 2006
Posts: 14
H
Pikka bird
Offline
Pikka bird
H
Joined: Oct 2006
Posts: 14
The matchtext in ON TEXT is compared against plain text already stripped of color codes so that is better than a separate 'if iswm'. It's smaller too.

As for using other characters may i suugest a regex
Code:
ON $*:TEXT:/m\W*i\W*r\W*c\W*c\W*o\W*m/: /gzline $nick 5d5m5h5s 12ZUCKKK OFF BASTOR

Note you do not need to put the . in since it would count as non-writable so is \W

If you are really desparate to get this guy then use all the suggestions smile


Link Copied to Clipboard