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

	<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-05-12T16:17:58-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-05-12T16:17:58-04:00</updated>

		<published>2003-05-12T16:17:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20123#p20123</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20123#p20123"/>
		<title type="html"><![CDATA[Shard status]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20123#p20123"><![CDATA[
<blockquote class="uncited"><div>Where did you get the idea of using {}'s as ()'s <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>make it<div class="codebox"><p>Code: </p><pre><code>if {($ok != "on") &amp;&amp; ($ok != "off")} {... </code></pre></div></div></blockquote>thanks user  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by Guest — Mon May 12, 2003 4:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-05-12T15:45:48-04:00</updated>

		<published>2003-05-12T15:45:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20116#p20116</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20116#p20116"/>
		<title type="html"><![CDATA[Shard status]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20116#p20116"><![CDATA[
Where did you get the idea of using {}'s as ()'s <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>make it<div class="codebox"><p>Code: </p><pre><code>if {($ok != "on") &amp;&amp; ($ok != "off")} {... </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon May 12, 2003 3:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-05-12T15:01:02-04:00</updated>

		<published>2003-05-12T15:01:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20112#p20112</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20112#p20112"/>
		<title type="html"><![CDATA[Shard status]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20112#p20112"><![CDATA[
sure. i fixed (think)<br>but now gives other errormsg<br>*edit*<br>¬ my msg: [16:05:48] &lt;infos&gt; !shardstatus on some users with lag.<br>[15:57:25] &lt;AoW_Shard&gt; [15:57] Tcl error [shard_status]: expected boolean value but got "$ok != "on""<br><br>i changed:<div class="codebox"><p>Code: </p><pre><code>  if {[lindex $arg 1] == ""} {</code></pre></div>and the { } in the other if.<br>thanks<p>Statistics: Posted by Guest — Mon May 12, 2003 3:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-05-12T14:41:45-04:00</updated>

		<published>2003-05-12T14:41:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20110#p20110</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20110#p20110"/>
		<title type="html"><![CDATA[Shard status]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20110#p20110"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {$ok != "on"} &amp;&amp; {$ok != "off"} {</code></pre></div>This is missing some grouping brakets. You are telling the IF to match "$ok != on", and the body is &amp;&amp;.<br><br>You should be using<br><div class="codebox"><p>Code: </p><pre><code>if {{$ok != "on"} &amp;&amp; {$ok != "off"}} {</code></pre></div><div class="codebox"><p>Code: </p><pre><code>if {![lindex $arg 1]} {</code></pre></div>This is not allways valid, and will return a error, if "[lindex $arg 1]" every return text.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon May 12, 2003 2:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-05-12T14:25:01-04:00</updated>

		<published>2003-05-12T14:25:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20109#p20109</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20109#p20109"/>
		<title type="html"><![CDATA[Shard status]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20109#p20109"><![CDATA[
Yeah, i'm here again <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br>What is this code problem?<br>[15:11:53] &lt;infos&gt; !shardstatus<br>[15:11:54] &lt;AoW_Shard&gt; [15:11] Tcl error [shard_status]: wrong # args: extra words after "else" clause in "if" command<div class="codebox"><p>Code: </p><pre><code>bind pub - "!shard" shardproc shard {user uhost hand chan arg} {  global shard status  putlog "$user: !Shard. Sending msg..."  putserv "NOTICE $user :Shard status: $shard - $status"}bind pub o|o "!shardstatus" shard_statusproc shard_status {user uhost hand chan arg} {  global shard status  set ok [join [lindex [split $arg] 0]]  if {![lindex $arg 1]} {    putserv "NOTICE $user :Sintax: !ShardStatus On/Off adtional_information"    return  }  if {$ok != "on"} &amp;&amp; {$ok != "off"} {    putserv "NOTICE $user :Sintax: !ShardStatus On/Off adtional_information"    return  }  if {$ok == "on"} {    set shard "Online"  }  if {$ok == "off"} {    set shard "Offline"  }  set status [join [lrange [split $arg] 1 end]]  putserv "NOTICE $user :Status do Shard: $shard - $status"}</code></pre></div>i tried to find but i cant see the problem.<br>thanks<p>Statistics: Posted by Guest — Mon May 12, 2003 2:25 pm</p><hr />
]]></content>
	</entry>
	</feed>
