This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Marky Color Uno

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
SaPrOuZy
Halfop
Posts: 75
Joined: Wed Mar 24, 2004 7:38 am
Location: Lebanon

Marky Color Uno

Post by SaPrOuZy »

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
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

You have to [split] and [join] the nick in each of the procs... Personally, I just ban stupid nickchars in my channels..
User avatar
SaPrOuZy
Halfop
Posts: 75
Joined: Wed Mar 24, 2004 7:38 am
Location: Lebanon

Post by SaPrOuZy »

i actually modified it in the following way:

Code: Select all

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
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

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: Select all

# choke on special chars
unochanmsg "stopped by \00310$nick!$uhost\003"
# stop choking
unochanmsg "stopped by \00310${nick}!$uhost\003"
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

You have to state what "chokes" mean, is it a Tcl error? if so then you have to paste the errorInfo to detect where the error occurred.

How to write eggdrop scripts that won't choke on special characters
Post Reply