<?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/9315" />

	<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>2005-03-14T03:13:06-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-03-14T03:13:06-04:00</updated>

		<published>2005-03-14T03:13:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47613#p47613</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47613#p47613"/>
		<title type="html"><![CDATA[if command not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47613#p47613"><![CDATA[
<blockquote class="uncited"><div>As for:<br><br>}<br> else {<br><br>&amp;<br><br>} else {<br><br>They really don't make a difference.</div></blockquote>Actually they do, if else is on a new line it will be considered a command (which is an invalid one). Besides, else should do the job fine instead of using "if" twice.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Mar 14, 2005 3:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-03-13T23:29:06-04:00</updated>

		<published>2005-03-13T23:29:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47597#p47597</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47597#p47597"/>
		<title type="html"><![CDATA[if command not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47597#p47597"><![CDATA[
If they work, theres no point. And they especially make life more easier working with colors. For 8-10 codes for just one color you can do just that will simple mIRC control codes.<br><br>I have seen scripts regsub control codes and outputting \002 and other chars, heh.<br><br>As for:<br><br>}<br> else {<br><br>&amp;<br><br>} else {<br><br>They really don't make a difference.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Mar 13, 2005 11:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-03-13T22:25:53-04:00</updated>

		<published>2005-03-13T22:25:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47595#p47595</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47595#p47595"/>
		<title type="html"><![CDATA[if command not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47595#p47595"><![CDATA[
and there's no point in encouraging people to use mirc codes, using the proper codes for color/bold/whatever is always better.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Sun Mar 13, 2005 10:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-03-13T22:09:31-04:00</updated>

		<published>2005-03-13T22:09:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47592#p47592</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47592#p47592"/>
		<title type="html"><![CDATA[if command not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47592#p47592"><![CDATA[
<blockquote class="uncited"><div>Just use normal mIRC character color codes with tcl they work fine as well, you don't need to use \002 for bold, when you can just simply use the characters which are represented by a box. Sorry this html forum doesn't support characters like that so I am unable to paste them over here.<br><br>And same goes for the rest.</div></blockquote>+S is color stripping on most networks, so that was the issue, nothing else.<br><br>btw... no copy&amp;paste of control characters? I wonder whats this:<div class="codebox"><p>Code: </p><pre><code>bold 4red</code></pre></div>I tried reverse paste and the codes work so there are correctly displayed from forum side. If they aren't on your browser its simply your browsers fault, not the forums <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink">.<br><br>to the main issue... your fault was to write:<br>}<br>else {<br>you MUST write:<br>} else {<br>I am sure you got a TCL error about else not beeing recognized. If you didn't see it, type ".set errorInfo" after running it again to verify.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun Mar 13, 2005 10:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-03-13T20:57:25-04:00</updated>

		<published>2005-03-13T20:57:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47589#p47589</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47589#p47589"/>
		<title type="html"><![CDATA[if command not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47589#p47589"><![CDATA[
Just use normal mIRC character color codes with tcl they work fine as well, you don't need to use \002 for bold, when you can just simply use the characters which are represented by a box. Sorry this html forum doesn't support characters like that so I am unable to paste them over here.<br><br>And same goes for the rest.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Mar 13, 2005 8:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TurboChicken]]></name></author>
		<updated>2005-03-13T14:58:15-04:00</updated>

		<published>2005-03-13T14:58:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47547#p47547</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47547#p47547"/>
		<title type="html"><![CDATA[if command not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47547#p47547"><![CDATA[
weird chanmodes<br><br>who'd have thought that +S strips colours<br><br>+S is usually SSL connections only is what i thought<br><br>but it worked thanx anyway<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5488">TurboChicken</a> — Sun Mar 13, 2005 2:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TurboChicken]]></name></author>
		<updated>2005-03-13T14:41:12-04:00</updated>

		<published>2005-03-13T14:41:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47546#p47546</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47546#p47546"/>
		<title type="html"><![CDATA[if command not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47546#p47546"><![CDATA[
that is really weird now.... it's not coming out with any colour at all....<br><br>on either one....<br><br>but both instances should have colour on them.... that is really weird<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5488">TurboChicken</a> — Sun Mar 13, 2005 2:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-03-13T13:18:04-04:00</updated>

		<published>2005-03-13T13:18:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47537#p47537</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47537#p47537"/>
		<title type="html"><![CDATA[if command not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47537#p47537"><![CDATA[
Use this:<br><div class="codebox"><p>Code: </p><pre><code>   set est [format %.2f $estPerMonth]   if {$est &lt; 800.00} {     putserv "PRIVMSG $c :\002IN BW:\002  $in GB &gt;&gt;&gt;&gt;&gt;&gt; \002OUT BW:\002  $out GB &gt;&gt;&gt;&gt;&gt;&gt; \002TOTAL:\002  $tot GB &gt;&gt;&gt;&gt;&gt;&gt; \002ESTIMATED:\002 \0039 $est\003 GB"   }   if {$est &gt; 800.00} {     putserv "PRIVMSG $c :\002IN BW:\002  $in GB &gt;&gt;&gt;&gt;&gt;&gt; \002OUT BW:\002  $out GB &gt;&gt;&gt;&gt;&gt;&gt; \002TOTAL:\002  $tot GB &gt;&gt;&gt;&gt;&gt;&gt; \002ESTIMATED:\002 \0034 $est\003 GB"   }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Mar 13, 2005 1:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TurboChicken]]></name></author>
		<updated>2005-03-13T12:32:34-04:00</updated>

		<published>2005-03-13T12:32:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47533#p47533</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47533#p47533"/>
		<title type="html"><![CDATA[if command not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47533#p47533"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>   set est [format %.2f $estPerMonth]   if {$est &lt; 800.00} {     putserv "PRIVMSG $c :\002IN BW:\002  $in GB &gt;&gt;&gt;&gt;&gt;&gt; \002OUT BW:\002  $out GB &gt;&gt;&gt;&gt;&gt;&gt; \002TOTAL:\002  $tot GB &gt;&gt;&gt;&gt;&gt;&gt; \002ESTIMATED:\002 \0039 $est\003 GB"   }   else {     putserv "PRIVMSG $c :\002IN BW:\002  $in GB &gt;&gt;&gt;&gt;&gt;&gt; \002OUT BW:\002  $out GB &gt;&gt;&gt;&gt;&gt;&gt; \002TOTAL:\002  $tot GB &gt;&gt;&gt;&gt;&gt;&gt; \002ESTIMATED:\002 \0034 $est\003 GB"   }</code></pre></div>if the value of $est is more than 800.00 it doesn't do anything.<br><br>it works fine for though that are below.<br><br>have missed something in the syntax?<br><br>P.s. the putserv's are on 1 line in the code<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5488">TurboChicken</a> — Sun Mar 13, 2005 12:32 pm</p><hr />
]]></content>
	</entry>
	</feed>
