| View previous topic :: View next topic |
| Author |
Message |
phreako Voice
Joined: 20 Jul 2005 Posts: 8
|
Posted: Mon Aug 22, 2005 6:01 am Post subject: Problem with [ , ( - how to remove |
|
|
thanks a lot
Last edited by phreako on Mon Aug 22, 2005 9:38 am; edited 1 time in total |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Mon Aug 22, 2005 9:11 am Post subject: |
|
|
You're probably facing that problem with using timers, use [list] instead of "". Example:
| Code: | | utimer 2 [list do:this $nick] |
this way if nick has characters such as [ or ], it won't cause problems, while using "do:this $nick" will.
PS: Read this post from the FAQ forum. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
phreako Voice
Joined: 20 Jul 2005 Posts: 8
|
Posted: Mon Aug 22, 2005 9:26 am Post subject: |
|
|
yeap ok thanks
Last edited by phreako on Mon Aug 22, 2005 9:38 am; edited 1 time in total |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Mon Aug 22, 2005 9:34 am Post subject: |
|
|
| Code: | | set string [string map {[ "" ] "" ( "" ) ""} $string] |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|