mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2006
Posts: 2
V
vdm Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
V
Joined: Jun 2006
Posts: 2
for expamle:
on *:text:*me*:#:{
set %tik very good
if ((%tik isin $1-) {
...
}
}
then $1- has colors if(...) {} - want not work. why? How i can solve this problem?

Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
I'm not too sure what you're asking, but in your code you have 1 too many parenthesis in your if statement.

if ((%tik isin $1-) { should be if (%tik isin $1-) {

Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
if you mean $1- has colors codes in the string use $strip

on *:text:*me*:#:{
set %tik very good
if (%tik isin $strip($1-) ) {
...
}
}


Link Copied to Clipboard