mIRC Home    About    Download    Register    News    Help

Print Thread
Problems with on text in combination with iswm #197864 15/04/08 07:33 PM
Joined: Feb 2006
Posts: 97
O
ots654685 Offline OP
Babel fish
OP Offline
Babel fish
O
Joined: Feb 2006
Posts: 97
since a few days i'm having problems with ontext events in combination with iswm.

Could it be that color codes used in channel is the problem because recently channel has changed layout and using colors and special characters.
If so how can i fix it if channel owner keeps changing it?

I'm placing this here because i think it's a scripting isue.

p.s. can any clear out for me what the difference is with "isin" and "iswm" besides wildcards?

Last edited by ots654685; 15/04/08 07:35 PM.
Re: Problems with on text in combination with iswm [Re: ots654685] #197865 15/04/08 09:16 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Control codes can be the cause depending on your script and what you're seeing. A way around it is to use $strip($1-) instead of $1-.

isin vs iswm:

if (this isin $1-) is basically the same as if (*this* iswm $1-). isin works fine if you don't care where it is in the line of text you are looking at. In most cases, however, you want more control and then you use iswm. iswm can let you require that the text is only at the beginning of the line, only at the end of the line, the only thing on the line, etc. It all depends on how you use your wildcards. Sometimes you also want to use it for something like if (*this*and*that* iswm $1-). That requires that those words are all in the line and that they are in that order, but anything can be between them. With isin, if you use multiple words, it will check that they are all within the text and that they are in the same order, but nothing else can be between the words unless you specifically put it there in your IF... no control codes, other words, etc.


Invision Support
#Invision on irc.irchighway.net
Re: Problems with on text in combination with iswm [Re: Riamus2] #197895 16/04/08 07:01 AM
Joined: Feb 2006
Posts: 97
O
ots654685 Offline OP
Babel fish
OP Offline
Babel fish
O
Joined: Feb 2006
Posts: 97
Thanks for helping and for your clear explanation about isin and iswm.