| View previous topic :: View next topic |
| Author |
Message |
NewzNZ Halfop

Joined: 05 Mar 2009 Posts: 60
|
Posted: Wed Mar 04, 2015 2:20 am Post subject: colours with $var |
|
|
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 |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 792 Location: Tennessee, USA
|
Posted: Wed Mar 04, 2015 10:57 am Post subject: |
|
|
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 |
|
 |
NewzNZ Halfop

Joined: 05 Mar 2009 Posts: 60
|
Posted: Wed Mar 04, 2015 3:31 pm Post subject: |
|
|
| Great - will give that a go...thanks SpiKe^^! |
|
| Back to top |
|
 |
|