| View previous topic :: View next topic |
| Author |
Message |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Fri Jun 03, 2016 8:44 am Post subject: |
|
|
| creasy wrote: |
...
And another question, can I use wildcards, like "nick*"?
|
| willyw wrote: |
...
If you want to work with a list of nicks, or check against user file for a specific flag, or check to see if poster is an op - it would require a little bit more scripting.
...
|
and if you want to use wildcards, it would require a little bit more scripting.
One idea, might be to use the
string match
command. Check out : http://www.tcl.tk/man/tcl8.5/TclCmd/string.htm#M39
Something along the lines of:
| Code: |
if {[string match nick* $nickname]} {
return 0
}
|
_________________ For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia ! |
|
| Back to top |
|
 |
creasy Voice
Joined: 05 Mar 2016 Posts: 24
|
Posted: Sat Jun 04, 2016 3:47 am Post subject: |
|
|
That fixed it. Thanks for the help guys  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|