egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

colours with $var

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
NewzNZ
Halfop


Joined: 05 Mar 2009
Posts: 60

PostPosted: Wed Mar 04, 2015 2:20 am    Post subject: colours with $var Reply with quote

Hi

I have a script that sends a line to the channel like this:

Code:

putserv "PRIVMSG #chan :\0037$var"


however, if the start of $var contains a number(s), it cuts the first number off the $var - am suspecting the colour code is upsetting it...and I want to avoid having a space between the two. Any way to combine the colour code and $var without interfering with it's contents?

Thanks in advance!
Back to top
View user's profile Send private message Visit poster's website
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 792
Location: Tennessee, USA

PostPosted: Wed Mar 04, 2015 10:57 am    Post subject: Reply with quote

Use 2 digit color codes...
Code:
putserv "PRIVMSG #chan :\00307$var"

_________________
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
Back to top
View user's profile Send private message Visit poster's website
NewzNZ
Halfop


Joined: 05 Mar 2009
Posts: 60

PostPosted: Wed Mar 04, 2015 3:31 pm    Post subject: Reply with quote

Great - will give that a go...thanks SpiKe^^!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber