<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/5549" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2003-09-12T18:46:00-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/5549</id>

		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-09-12T18:46:00-04:00</updated>

		<published>2003-09-12T18:46:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27045#p27045</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27045#p27045"/>
		<title type="html"><![CDATA[inserting a space]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27045#p27045"><![CDATA[
that works great - cheers stdragon!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Fri Sep 12, 2003 6:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-09-12T09:37:01-04:00</updated>

		<published>2003-09-12T09:37:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27019#p27019</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27019#p27019"/>
		<title type="html"><![CDATA[Re: inserting a space]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27019#p27019"><![CDATA[
<blockquote class="uncited"><div>Hi - I have this string that adds colour to pieces of data before it's sent to the channel - what I'm trying to do is add a space of either the red or green colour infront of $test, but not having any luck so far! any ideas? thanks!<br><br>set test [string map [list + \0030,3+ - \0030,4-] $num]<br>set test2 [string map [list + \0030,3+ - \0030,4-] [lindex $all 3]]<br><br>putserv "PRIVMSG $channel :\0030,12»\0031,15 Nasdaq-100 Pre-Market Indicator &gt; [lindex $all 0] $test ($test2) \0031,15 [lindex $all 1] ET \003"</div></blockquote>Well, if you want to insert spaces, all you have to do is add them to the "string map" command.<br><br>string map [list + "\0030,3 +" - "\0030,4 -" ] $num<br><br>and in the putserv, add a space before the new \003.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Fri Sep 12, 2003 9:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TeDDyBeeR]]></name></author>
		<updated>2003-09-11T04:34:51-04:00</updated>

		<published>2003-09-11T04:34:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26944#p26944</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26944#p26944"/>
		<title type="html"><![CDATA[inserting a space]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26944#p26944"><![CDATA[
This is an example of i think you meen what you wanna have :<br><div class="codebox"><p>Code: </p><pre><code>set testnum "+123"set testnum2 "-123"bind pub - !testnum proc:doshowproc proc:doshow {nick uhost handle channel arg} {   global testnum testnum2   putserv "PRIVMSG $channel : TEST"   putserv "privmsg $channel : \0030,12»\0031,15 Nasdaq-100 Pre-Market Indicator &gt; [expr $testnum&lt;0?"\00304$testnum":"\00303$testnum"] \0031,15 ET \003]"   putserv "privmsg $channel : \0030,12»\0031,15 Nasdaq-100 Pre-Market Indicator &gt; [expr $testnum2&lt;0?"\00304$testnum2":"\00303$testnum2"] \0031,15 ET \003]"}</code></pre></div>the code :<div class="codebox"><p>Code: </p><pre><code>[expr $testnum&lt;0?"\00304$testnum":"\00303$testnum"]</code></pre></div>In this line check of the $testnum is lower then 0 or not, when it is, he write in red, (-123) and else he write in green (+123)<br><br>I hope you have someting on this <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>regards, <br>TeDDyBeeR<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3774">TeDDyBeeR</a> — Thu Sep 11, 2003 4:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-09-10T21:39:03-04:00</updated>

		<published>2003-09-10T21:39:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26938#p26938</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26938#p26938"/>
		<title type="html"><![CDATA[inserting a space]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26938#p26938"><![CDATA[
thanks but that's not it - if anyone else has any ideas...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Wed Sep 10, 2003 9:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2003-09-10T13:41:07-04:00</updated>

		<published>2003-09-10T13:41:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26895#p26895</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26895#p26895"/>
		<title type="html"><![CDATA[inserting a space]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26895#p26895"><![CDATA[
Try using a hard space. ALT 0160  never tried it myself.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Wed Sep 10, 2003 1:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-09-10T05:00:15-04:00</updated>

		<published>2003-09-10T05:00:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26869#p26869</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26869#p26869"/>
		<title type="html"><![CDATA[inserting a space]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26869#p26869"><![CDATA[
sorry - as I'm using a background colour, I want to pad the $test2 info either side with a space which just shows up as colour, like would show up if you did this:<br><br>/0030,12 Hello /003<br><br>rather than the text hard up against the edges of the colour like:<br><br>/0030,12Hello/003<br><br>so I'd like this to be either green or red depending on that string that determines the colour based on whether + or - is in $num<br><br>thanks - hope that makes it clearer...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Wed Sep 10, 2003 5:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-09-10T04:47:10-04:00</updated>

		<published>2003-09-10T04:47:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26867#p26867</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26867#p26867"/>
		<title type="html"><![CDATA[inserting a space]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26867#p26867"><![CDATA[
<blockquote class="uncited"><div>what I'm trying to do is add a space of either the red or green colour infront of $test</div></blockquote>Can you repeat this, it doesn't mean anything as it is.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Sep 10, 2003 4:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-09-10T01:22:43-04:00</updated>

		<published>2003-09-10T01:22:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26858#p26858</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26858#p26858"/>
		<title type="html"><![CDATA[inserting a space]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26858#p26858"><![CDATA[
Hi - I have this string that adds colour to pieces of data before it's sent to the channel - what I'm trying to do is add a space of either the red or green colour infront of $test, but not having any luck so far! any ideas? thanks!<br><br>set test [string map [list + \0030,3+ - \0030,4-] $num]<br>set test2 [string map [list + \0030,3+ - \0030,4-] [lindex $all 3]]<br><br>putserv "PRIVMSG $channel :\0030,12»\0031,15 Nasdaq-100 Pre-Market Indicator &gt; [lindex $all 0] $test ($test2) \0031,15 [lindex $all 1] ET \003"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Wed Sep 10, 2003 1:22 am</p><hr />
]]></content>
	</entry>
	</feed>
