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.

output formating question

Old posts that have not been replied to for several years.
Locked
o
otterboyy

Post by otterboyy »

yes its me again. hopefully this won't be one of those "hard things are simple and simple things are hard" issue.
it has to do with the format of the args variable in a proc.
EG.
proc html:mgs {nick uhost handle chan args} {
global botnick
;# sniping code to make this shorter

putserv "PRIVMSG $user : Urgent message sent by: $nick $args"

;# sniping code again.

The output is formated as follows:
Urgent message Sent by: mark2 {test again}

The question has to do with the curly braces around "test again". A: why are they there? B: how can I get rid of them?

oh yes.. a C: how are you posting code so it saves its formating on this board?

Thanks in advance!

Otter

<font size=-1>[ This Message was edited by: otterboyy on 2002-03-20 16:27 ]</font>
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

because you're using the variable $args which holds special meaning in tcl (go read the manual page for proc for the details).
o
otterboyy

Post by otterboyy »

thanks for the reply.

After further page flipping (by your guideance) I have changed the bind from a pub to a pubm as I don't want to deal with an eval at this time.

it was a simple matter to change. thanks!!!
Locked