| View previous topic :: View next topic |
| Author |
Message |
SaPrOuZy Halfop

Joined: 24 Mar 2004 Posts: 75 Location: Lebanon
|
Posted: Tue Jun 12, 2007 5:50 am Post subject: Marky Color Uno |
|
|
hey guys,
there's a problem in marky's color uno, where the script chokes on players with nicks containing { }.
Anyone has this fixed, or is willing to work on fixing it? am not finding much time to do that.
Thanks |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Tue Jun 12, 2007 9:20 am Post subject: |
|
|
| You have to [split] and [join] the nick in each of the procs... Personally, I just ban stupid nickchars in my channels.. |
|
| Back to top |
|
 |
SaPrOuZy Halfop

Joined: 24 Mar 2004 Posts: 75 Location: Lebanon
|
Posted: Tue Jun 12, 2007 9:27 am Post subject: |
|
|
i actually modified it in the following way:
| Code: | if {[string match "*\{*" $nick] || [string match "*\}*" $nick] } {
unontc $nick "Sorry $nick - you cannot join uno with this nick please use a nick that does not contain \002\{\}\002."
return 0
} |
at least till someone does what i don't feel like doing lol |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Thu Jun 14, 2007 8:13 pm Post subject: |
|
|
The problem is the script uses lots of variables within quotes, and doesn't use the curly braces to suppress interpreter from getting choked on special characters.. I experienced similar issues hacking the google script so I'm fairly certain this causes it. Every place where $nick is referenced within quotes you will have to encapsulate it. $nick -> ${nick}
line 246, for example: | Code: | # choke on special chars
unochanmsg "stopped by \00310$nick!$uhost\003"
# stop choking
unochanmsg "stopped by \00310${nick}!$uhost\003" |
|
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
|