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.
Help for those learning Tcl or writing their own scripts.
NewzNZ
Halfop
Posts: 68 Joined: Thu Mar 05, 2009 5:15 am
Contact:
Post
by NewzNZ » Wed Mar 04, 2015 2:20 am
Hi
I have a script that sends a line to the channel like this:
Code: Select all
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!
SpiKe^^
Owner
Posts: 831 Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:
Post
by SpiKe^^ » Wed Mar 04, 2015 10:57 am
Use 2 digit color codes...
Code: Select all
putserv "PRIVMSG #chan :\00307$var"
NewzNZ
Halfop
Posts: 68 Joined: Thu Mar 05, 2009 5:15 am
Contact:
Post
by NewzNZ » Wed Mar 04, 2015 3:31 pm
Great - will give that a go...thanks SpiKe^^!