mIRC Home    About    Download    Register    News    Help

Print Thread
#213412 26/06/09 08:55 PM
Joined: Oct 2003
Posts: 3
S
SPooNY Offline OP
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Oct 2003
Posts: 3
How would you go about selecting a partial nick in a script with a wild card?

e.x. the user's nick is Franklin
($nick == fran*) isn't working.

SPooNY #213413 26/06/09 09:19 PM
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
Use the iswm operator (IS Wildcard Match) :
Code:
if (fran* iswm $nick) { }


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #213418 26/06/09 11:03 PM
Joined: Oct 2003
Posts: 3
S
SPooNY Offline OP
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Oct 2003
Posts: 3
thank-you! That's what I was looking for. smile


Link Copied to Clipboard