mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2005
Posts: 2
1
1fizzle Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
1
Joined: Feb 2005
Posts: 2
im trying to write a script to auto-voice any nick that joins the channel with *text* in their nick.
remote: on 1:JOIN:#channel:/voiceit
alias: /voiceit {
if (*text* isin $nick) { /mode $chan v $nick }
else { }
}

...that should work, i'm assuming i did it correctly, but for some reason its not working...can anyone tell me what i did wrong/should do?

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
on 1:JOIN:#channel:{ if (text isin $nick) { /mode $chan v $nick } }

or

on 1:JOIN:#channel:{ if (*text* iswm $nick) { /mode $chan v $nick } }

(dont use the second one its bound to be more task intensive, i just added it to show u the ISWM in which you need the *'s)

Joined: Feb 2005
Posts: 2
1
1fizzle Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
1
Joined: Feb 2005
Posts: 2
ahhh, thank you, much appreciated.

Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
on @*:JOIN:#channel: if (text isin $nick) { mode $chan +v $nick }


Gone.

Link Copied to Clipboard