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.

remove { } chars

Old posts that have not been replied to for several years.
Locked
M
Mystery-X
Voice
Posts: 10
Joined: Sun Apr 25, 2004 5:49 pm

remove { } chars

Post by Mystery-X »

I've got the problem when i'm using my tcl that when there are 2 arguments that my tcl adds { } around them.
For example
!find cool guy then he returns {cool guy}
How can i fix this or prevent this?

Greetz Mystery-X
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

It sounds like it's stored as a list, use join to convert it back to a string (and get rid of the braces).

ex:

Code: Select all

putserv "PRIVMSG $channel :[join $text]"
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

if you use the variable name "$args", you might want to select a diffrent name. this might already help without further edits.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Locked