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

	<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>2011-11-01T16:08:24-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-11-01T16:08:24-04:00</updated>

		<published>2011-11-01T16:08:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98091#p98091</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98091#p98091"/>
		<title type="html"><![CDATA[Existing script addedbots.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98091#p98091"><![CDATA[
I doubt that (would have to be an improper tcl parser, not able to handle ; as a command separator).<br>Regardless, the last version in my earlier post should work for any version of tcl (though I missed to include the following line):<div class="codebox"><p>Code: </p><pre><code>    if {[matchattr $hand b] == 1} {incr added_bot; set leave 0}#### Change into    if {[matchattr $hand b] == 1} {      incr added_bot      set leave 0    }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Nov 01, 2011 4:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[raven]]></name></author>
		<updated>2011-11-01T15:32:39-04:00</updated>

		<published>2011-11-01T15:32:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98090#p98090</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98090#p98090"/>
		<title type="html"><![CDATA[Existing script addedbots.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98090#p98090"><![CDATA[
I re-downloaded the script and upzip'ed without opening in, to both shells..same error om hub bot but working on a leaf!<br><br>Can it be outdated TCL on the box?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11751">raven</a> — Tue Nov 01, 2011 3:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-11-01T14:36:12-04:00</updated>

		<published>2011-11-01T14:36:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98089#p98089</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98089#p98089"/>
		<title type="html"><![CDATA[Existing script addedbots.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98089#p98089"><![CDATA[
Unfortunately, those are the only four lines within that script that contains the incr function, and thus are the only reasonable sources for the error you posted.<br><br>When editing the script, make sure you are using an editor that does not use word-wrapping.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Nov 01, 2011 2:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[raven]]></name></author>
		<updated>2011-11-01T14:29:31-04:00</updated>

		<published>2011-11-01T14:29:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98088#p98088</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98088#p98088"/>
		<title type="html"><![CDATA[Existing script addedbots.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98088#p98088"><![CDATA[
Heya!<br><br>Cleaned up that part in the script, really didn't help. Below is a directlink to the script itself if you wanna take a look.<br><br><a href="http://www.egghelp.org/tclhtml/3478-4-0-0-1-addedbots.htm" class="postlink">http://www.egghelp.org/tclhtml/3478-4-0 ... edbots.htm</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11751">raven</a> — Tue Nov 01, 2011 2:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-11-01T13:58:09-04:00</updated>

		<published>2011-11-01T13:58:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98087#p98087</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98087#p98087"/>
		<title type="html"><![CDATA[Existing script addedbots.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98087#p98087"><![CDATA[
You've got a few newlines in this post in inappropriate positions, that would cause this error. Could you check if these newlines are present in the scripts on your eggdrops?<br><div class="codebox"><p>Code: </p><pre><code>#############################################################################################################    if {($leave == 0) &amp;&amp; ([onchan [hand2nick $hand] $chan])} {incron_chan}    if {($leave == 0) &amp;&amp; (![onchan [hand2nick $hand] $chan])} {incrnot_on_chan; append msg "$hand , "}    if {($leave == 0) &amp;&amp; ([islinked $hand])} {incr linked}    if {($leave == 0) &amp;&amp; (![islinked $hand]) &amp;&amp; ($hand != "$botnick")}{append linked_msg "$hand , "}############################################################################################################## Should be:    if {($leave == 0) &amp;&amp; ([onchan [hand2nick $hand] $chan])} {incr on_chan}    if {($leave == 0) &amp;&amp; (![onchan [hand2nick $hand] $chan])} {incr not_on_chan; append msg "$hand , "}    if {($leave == 0) &amp;&amp; ([islinked $hand])} {incr linked}    if {($leave == 0) &amp;&amp; (![islinked $hand]) &amp;&amp; ($hand != "$botnick")} {append linked_msg "$hand , "}############################################################################################################## Or, for proper postings on the board:    if {($leave == 0) &amp;&amp; ([onchan [hand2nick $hand] $chan])} {      incr on_chan    }    if {($leave == 0) &amp;&amp; (![onchan [hand2nick $hand] $chan])} {      incr not_on_chan      append msg "$hand , "    }    if {($leave == 0) &amp;&amp; ([islinked $hand])} {      incr linked    }    if {($leave == 0) &amp;&amp; (![islinked $hand]) &amp;&amp; ($hand != "$botnick")} {      append linked_msg "$hand , "    }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Nov 01, 2011 1:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[raven]]></name></author>
		<updated>2011-11-01T09:44:02-04:00</updated>

		<published>2011-11-01T09:44:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98084#p98084</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98084#p98084"/>
		<title type="html"><![CDATA[Existing script addedbots.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98084#p98084"><![CDATA[
Hi!<br><br>I downloaded a script that is supposed to look at the botnet, and let me know wich bots isn't linked in. It works on one bot, a leaf, but I want to have it on the hub. But it gives me a error.<br><br>SCRIPT:<br><div class="codebox"><p>Code: </p><pre><code>bind pub m \?bots pub_list_botsproc pub_list_bots {nick host hand chan arg} { global botnick set msg "" set added_bot 0 set on_chan 0 set not_on_chan 0 set linked 0 set linked_msg "" set misslink "" set missonchan "" foreach hand [userlist] {    set leave 1    if {[matchattr $hand b] == 1} {incr added_bot; set leave 0}    if {($leave == 0) &amp;&amp; ([onchan [hand2nick $hand] $chan])} {incron_chan}    if {($leave == 0) &amp;&amp; (![onchan [hand2nick $hand] $chan])} {incrnot_on_chan; append msg "$hand , "}    if {($leave == 0) &amp;&amp; ([islinked $hand])} {incr linked}    if {($leave == 0) &amp;&amp; (![islinked $hand]) &amp;&amp; ($hand != "$botnick")}{append linked_msg "$hand , "} } if {[string range $msg [expr [string length $msg] -1] end] != ", "} {      set msg "[string trimright $msg ", "]"    } if {[string range $linked_msg [expr [string length $linked_msg] -1]end] != ", "} {      set linked_msg "[string trimright $linked_msg ", "]"    } set plah "" set linked [expr $linked + 1] set misslink [expr $added_bot - $linked] set missonchan [expr $added_bot - $on_chan] if {$added_bot != "$on_chan"} {      set plah "Added Bots\: [b]$added_bot[b]... But only [b]$on_chan[b]are here."      if {$linked != $on_chan} {append plah " Linked Bots\:[b]$linked[b]."}      putserv "PRIVMSG $chan :--\&gt; $plah"      if {$linked == $on_chan} {           putserv "PRIVMSG $chan :--\&gt; Missing ([b]$missonchan[b])\:$msg"         } else {           putserv "PRIVMSG $chan :--\&gt; Missing on Channel([b]$missonchan[b])\: $msg"           if {$misslink != "0"} {                putserv "PRIVMSG $chan :--\&gt; Missing Linked([b]$misslink[b])\: $linked_msg"              }         }    } else {      putserv "PRIVMSG $chan :--\&gt; All [b]$added_bot[b] Bots are here."    }}proc b {} {return \002}proc u {} {return \037}</code></pre></div>And the error is:<br><br>[13:31] Tcl error [pub_list_bots]: wrong # args: should be "incr varName ?increment?"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11751">raven</a> — Tue Nov 01, 2011 9:44 am</p><hr />
]]></content>
	</entry>
	</feed>
