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

	<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>2008-03-02T01:40:39-04:00</updated>

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

		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2008-03-01T01:30:24-04:00</updated>

		<published>2008-03-01T01:30:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81303#p81303</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81303#p81303"/>
		<title type="html"><![CDATA[Help to fix errors in script :) [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81303#p81303"><![CDATA[
Thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> gonna upload it soon and see if it fixes the problems. And maybe look in to getting new glasses <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_eek.gif" width="15" height="15" alt=":shock:" title="Shocked"><br><br>Update: Works great! nice one <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Sat Mar 01, 2008 1:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2008-02-29T21:12:59-04:00</updated>

		<published>2008-02-29T21:12:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81298#p81298</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81298#p81298"/>
		<title type="html"><![CDATA[Help to fix errors in script :) [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81298#p81298"><![CDATA[
For those that don't need the bloat of newer eggdrop versions, older eggdrop versions require older Tcl versions (without source code modification).  I myself have two separate botnets, one based on 1.1.5, and another based on 1.6.x.  But I digress... I didn't want to hijack this thread with this debate, just found it irrelevant a method one chooses to implement something if the result is the same.  What is it they say? There's more than one way to skin a cat...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Fri Feb 29, 2008 9:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[honeybee]]></name></author>
		<updated>2008-02-29T21:01:53-04:00</updated>

		<published>2008-02-29T21:01:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81295#p81295</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81295#p81295"/>
		<title type="html"><![CDATA[Help to fix errors in script :) [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81295#p81295"><![CDATA[
yeah you hardly find tcl version lower than tcl8.4 on most public shells may be if someone is using their personal box they should update the tcl version for good.<br><br>And.. I suggested him string equal function because he has been using "string" == "string" all over his script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7174">honeybee</a> — Fri Feb 29, 2008 9:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-02-29T20:48:11-04:00</updated>

		<published>2008-02-29T20:48:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81293#p81293</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81293#p81293"/>
		<title type="html"><![CDATA[Help to fix errors in script :) [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81293#p81293"><![CDATA[
Actually, for the special case of testing some nick against bots own nick, use the isbotnick function.<br><br>Using "string equal" does have the advantage of offering non-case sensitive matching over simple "string" != "string". True, string equal is not available in older versions of tcl, but then again, I find these older versions (8.0 or older) more and more rare. If this is a concern, add some notice 'bout script requiring tcl 8.2 or newer.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Feb 29, 2008 8:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2008-02-29T20:38:07-04:00</updated>

		<published>2008-02-29T20:38:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81292#p81292</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81292#p81292"/>
		<title type="html"><![CDATA[Help to fix errors in script :) [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81292#p81292"><![CDATA[
Maybe because "equal" isn't a valid 'string' argument across all Tcl versions.  Just a thought.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Fri Feb 29, 2008 8:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[honeybee]]></name></author>
		<updated>2008-02-29T20:33:07-04:00</updated>

		<published>2008-02-29T20:33:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81291#p81291</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81291#p81291"/>
		<title type="html"><![CDATA[Help to fix errors in script :) [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81291#p81291"><![CDATA[
instead of using <div class="codebox"><p>Code: </p><pre><code>$nick != $botnick</code></pre></div>and so on...<br>why don't you use <div class="codebox"><p>Code: </p><pre><code>[string equal -nocase $nick $::botnick]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7174">honeybee</a> — Fri Feb 29, 2008 8:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[username]]></name></author>
		<updated>2008-02-29T07:34:06-04:00</updated>

		<published>2008-02-29T07:34:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81270#p81270</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81270#p81270"/>
		<title type="html"><![CDATA[Help to fix errors in script :) [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81270#p81270"><![CDATA[
Look at <div class="codebox"><p>Code: </p><pre><code>&amp;&amp; (![botisop $channel) &amp;&amp;</code></pre></div>You forget ].<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6813">username</a> — Fri Feb 29, 2008 7:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2008-03-02T01:40:39-04:00</updated>

		<published>2008-02-29T05:18:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81269#p81269</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81269#p81269"/>
		<title type="html"><![CDATA[Help to fix errors in script :) [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81269#p81269"><![CDATA[
I've wrote down a script a few weeks back, was pretty rough but thought it was simple enough to work  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> found out that its not been working. And after taking the time to go over, haven't been able to fix the following errors:<blockquote class="uncited"><div>Tcl error [part:botcover]: missing close-bracket</div></blockquote> -- When someone <em class="text-italics">parts</em> the channel. <blockquote class="uncited"><div>[08:41:17] &lt;Me&gt; .set errorInfo<br>[08:41:17] &lt;Bot&gt; [08:44] #Me# set errorInfo<br>[08:41:18] &lt;Bot&gt; Currently: missing close-bracket<br>[08:41:18] &lt;Bot&gt; Currently:     ("if" test expression)<br>[08:41:18] &lt;Bot&gt; Currently:     while compiling<br>[08:41:18] &lt;Bot&gt; Currently: "if {($nick != $botnick) &amp;&amp; ($nick == [lindex $botcover_cover 0]) || ($nick == [lindex $botcover_cover 1]) &amp;&amp; (![botisop $channel) &amp;&amp; ([matchattr $botn..."<br>[08:41:18] &lt;Bot&gt; Currently:     (compiling body of proc "part:botcover", line 3)<br>[08:41:18] &lt;Bot&gt; Currently:     invoked from within<br>[08:41:18] &lt;Bot&gt; Currently: "part:botcover $_p1 $_p2 $_p3 $_p4 $_p5"</div></blockquote> -- output of <span style="text-decoration:underline">.set errorInfo</span><br><br>The full snipplet is <div class="codebox"><p>Code: </p><pre><code>set botcover_cover "bot2cover1 bot2cover2"set botcover_bots "coverbot1 coverbot2"set botcover_snick "opservice"proc part:botcover {nick host handle channel {msg ""}} {global botnick botcover_snick botcover_bots botcover_cover if {(![isbotnick $nick]) &amp;&amp; ($nick == [lindex $botcover_cover 0]) || ($nick == [lindex $botcover_cover 1]) &amp;&amp; (![botisop $channel]) &amp;&amp; ([matchattr $botnick |+C $channel])} {  chattr [lindex $botcover_bots 0] "-|+flov $channel"   chattr [lindex $botcover_bots 1] "-|+flov $channel"     putserv "PRIVMSG $botcover_snick :OP $channel $botnick"      return }}proc sign:botcover {nick host handle channel reason} {global botnick botcover_snick botcover_bots botcover_cover if {(![isbotnick $nick]) &amp;&amp; ($nick == [lindex $botcover_cover 0]) || ($nick == [lindex $botcover_cover 1]) &amp;&amp; (![botisop $channel]) &amp;&amp; ([matchattr $botnick |+C $channel])} {  chattr [lindex $botcover_bots 0] "-|+flov $channel"   chattr [lindex $botcover_bots 1] "-|+flov $channel"     putserv "PRIVMSG $botcover_snick :OP $channel $botnick"      return }}proc splt:botcover {nick host handle channel} {global botnick botcover_snick botcover_bots botcover_cover if {(![isbotnick $nick]) &amp;&amp; ($nick == [lindex $botcover_cover 0]) || ($nick == [lindex $botcover_cover 1]) &amp;&amp; (![botisop $channel]) &amp;&amp; ([matchattr $botnick |+C $channel])} {  chattr [lindex $botcover_bots 0] "-|+flov $channel"   chattr [lindex $botcover_bots 1] "-|+flov $channel"     putserv "PRIVMSG $botcover_snick :OP $channel $botnick"      return }}bind splt - "* *" splt:botcoverbind sign - "* *" sign:botcoverbind part - "* *" part:botcoverputlog "loaded botcover.tcl version 1.0.3b"return</code></pre></div> sorry for bother  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><br><br>EDIT: fixed a few errors noted by Users below. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Thx <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Fri Feb 29, 2008 5:18 am</p><hr />
]]></content>
	</entry>
	</feed>
