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

	<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-06-11T12:08:54-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-06-11T12:08:54-04:00</updated>

		<published>2003-06-11T12:08:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21676#p21676</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21676#p21676"/>
		<title type="html"><![CDATA[Caesar's tsunami.tcl shows an error in partyline.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21676#p21676"><![CDATA[
ok thanx <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>No usch errors are appearing anymore <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=3085">Sir_Fz</a> — Wed Jun 11, 2003 12:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-11T11:45:06-04:00</updated>

		<published>2003-06-11T11:45:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21673#p21673</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21673#p21673"/>
		<title type="html"><![CDATA[Caesar's tsunami.tcl shows an error in partyline.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21673#p21673"><![CDATA[
Yes, it should be there.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jun 11, 2003 11:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-06-11T11:29:52-04:00</updated>

		<published>2003-06-11T11:29:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21672#p21672</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21672#p21672"/>
		<title type="html"><![CDATA[Caesar's tsunami.tcl shows an error in partyline.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21672#p21672"><![CDATA[
ok I added the "<strong class="text-strong">if {![info exists bla([strlwr $chan])]} { set bla([strlwr $chan]) 0 }</strong>" right before the "<strong class="text-strong">set linelength...</strong>", so now its:<div class="codebox"><p>Code: </p><pre><code>if {![info exists bla([strlwr $chan])]} { set bla([strlwr $chan]) 0 }  set linelength [lindex [split $::ltl ":"] 3]</code></pre></div>and I replaced those 2 codes u told me to<br>--but should I keep this code ?:<div class="codebox"><p>Code: </p><pre><code># array fix #foreach chan [channels] {  set bla([strlwr $chan]) 0}</code></pre></div>or should I remove it ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Jun 11, 2003 11:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-11T05:33:50-04:00</updated>

		<published>2003-06-11T05:33:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21646#p21646</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21646#p21646"/>
		<title type="html"><![CDATA[Caesar's tsunami.tcl shows an error in partyline.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21646#p21646"><![CDATA[
Replace from:<div class="codebox"><p>Code: </p><pre><code>if {[string match [strlwr [strlwr $chan]] $arr_part]} {</code></pre></div>to:<div class="codebox"><p>Code: </p><pre><code>if {[string match [strlwr $chan] $arr_part]} {</code></pre></div>there is no need to make it lower case twice, duno how I've missed that. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jun 11, 2003 5:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-11T03:04:18-04:00</updated>

		<published>2003-06-11T03:04:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21630#p21630</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21630#p21630"/>
		<title type="html"><![CDATA[Caesar's tsunami.tcl shows an error in partyline.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21630#p21630"><![CDATA[
Also, replace from:<div class="codebox"><p>Code: </p><pre><code>if {[string length [join [split $text] ""]] &gt; "$linelength"} {</code></pre></div>to:<div class="codebox"><p>Code: </p><pre><code>if {[llength [split $text ""]] &gt; "$linelength"} {</code></pre></div>and there goes another fixed "bug" <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Ps: the "if {![info exists bla([strlwr $chan])]} { set bla([strlwr $chan]) 0 } " should be added before the "set linelength [lindex [split $::ltl ":"] 3]" somewhere..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jun 11, 2003 3:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-11T00:52:49-04:00</updated>

		<published>2003-06-11T00:52:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21619#p21619</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21619#p21619"/>
		<title type="html"><![CDATA[Caesar's tsunami.tcl shows an error in partyline.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21619#p21619"><![CDATA[
Yes, in this one I have forgot to add this, but in the njf.tcl it exists:<blockquote class="uncited"><div># fix after an .chanset on a channel<br>  if {![info exists val([strlwr $chan])]} { set val([strlwr $chan]) 0 }</div></blockquote>For the tsunami.tcl this should be somehting like this:<div class="codebox"><p>Code: </p><pre><code>if {![info exists bla([strlwr $chan])]} { set bla([strlwr $chan]) 0 }</code></pre></div>Anyway, as I have wrote in it is a beta thing so yah, it's buggy.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jun 11, 2003 12:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-06-10T12:00:34-04:00</updated>

		<published>2003-06-10T12:00:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21599#p21599</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21599#p21599"/>
		<title type="html"><![CDATA[Caesar's tsunami.tcl shows an error in partyline.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21599#p21599"><![CDATA[
It looks like you initialize the array at the beginning of the script. So if somebody does a .+chan after it's loaded, that entry won't exist. Maybe instead you should use if {![info exists bla(chan)]} {set bla(chan) 0} at the top of each proc where you access the array? Or better, put it in a proc called init_chan $chan, which does that line.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue Jun 10, 2003 12:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-10T11:56:43-04:00</updated>

		<published>2003-06-10T11:56:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21598#p21598</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21598#p21598"/>
		<title type="html"><![CDATA[Caesar's tsunami.tcl shows an error in partyline.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21598#p21598"><![CDATA[
I haven't got any "no such element in array" errors in the tsunami.tcl and/or even not in the njf.tcl (version 0.3) wich should be working fine.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Jun 10, 2003 11:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-06-10T11:34:45-04:00</updated>

		<published>2003-06-10T11:34:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21596#p21596</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21596#p21596"/>
		<title type="html"><![CDATA[Caesar's tsunami.tcl shows an error in partyline.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21596#p21596"><![CDATA[
I'm sorry for bugging u<br>but Tsunami.tcl is still giving this error<blockquote class="uncited"><div>[08:33] Tcl error [tsunami:pub]: can't read "bla(<strong class="text-strong">#channel</strong>)": no such element in array</div></blockquote>as I said before "<strong class="text-strong">#channel</strong>" is the name of a channel where the bot is oped.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Jun 10, 2003 11:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-06-10T11:31:30-04:00</updated>

		<published>2003-06-10T11:31:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21595#p21595</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21595#p21595"/>
		<title type="html"><![CDATA[Caesar's tsunami.tcl shows an error in partyline.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21595#p21595"><![CDATA[
ok thanx man <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> now it shows no errors.<br><br>But your njf.tcl gives similar errors as tsunami.tcl, can u fix it please<br><br>also the longline.tcl gives an error like "text after closed quote" If I remember.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Jun 10, 2003 11:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-10T10:35:59-04:00</updated>

		<published>2003-06-10T10:35:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21591#p21591</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21591#p21591"/>
		<title type="html"><![CDATA[Caesar's tsunami.tcl shows an error in partyline.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21591#p21591"><![CDATA[
Under the "incr bla([strlwr $chan])" in the "tsunami:pub" proc are the two utimers that I was talking about that should be changed with the new ones I've gave you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Jun 10, 2003 10:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-06-10T10:25:39-04:00</updated>

		<published>2003-06-10T10:25:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21590#p21590</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21590#p21590"/>
		<title type="html"><![CDATA[Caesar's tsunami.tcl shows an error in partyline.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21590#p21590"><![CDATA[
<blockquote class="uncited"><div>proc tsunami:pub {nick uhost hand chan text} {<br>  global bla blist<br>  if {[strlwr $nick] == [strlwr $::botnick] || ![botisop [strlwr $chan]]} {<br>#  || ![channel get [strlwr $chan] tsunami]<br>    return<br>  }</div></blockquote>this is the tsunami:pub proc, there are no utimers to replace :s<br>but here :<div class="codebox"><p>Code: </p><pre><code>set linelength [lindex [split $::ltl ":"] 3]   if {[string length [join [split $text] ""]] &gt; "$linelength"} {    lappend blist [strlwr $nick]    set lines [lindex [split $::ltl ":"] 0]    set insec [lindex [split $::ltl ":"] 1]    set unlock [lindex [split $::ltl ":"] 2]    incr bla([strlwr $chan])    utimer $insec "reset [strlwr $chan]"    utimer $insec "remove [strlwr $nick]"</code></pre></div>should i replace these timers by yours ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Jun 10, 2003 10:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-10T10:16:52-04:00</updated>

		<published>2003-06-10T10:16:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21588#p21588</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21588#p21588"/>
		<title type="html"><![CDATA[Caesar's tsunami.tcl shows an error in partyline.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21588#p21588"><![CDATA[
Seesh.. replace from:<div class="codebox"><p>Code: </p><pre><code>    utimer $insec "reset [strlwr $chan]"     utimer $insec "remove [strlwr $nick]" </code></pre></div>to:<div class="codebox"><p>Code: </p><pre><code>utimer $insec [list reset [strlwr $chan]] utimer $insec [list remove [strlwr $nick]] </code></pre></div>This two are in the tsunami:pub proc.. the remove is separated. Just replace the old one with the new one. Is this hard?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Jun 10, 2003 10:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-06-10T10:02:02-04:00</updated>

		<published>2003-06-10T10:02:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21586#p21586</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21586#p21586"/>
		<title type="html"><![CDATA[Caesar's tsunami.tcl shows an error in partyline.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21586#p21586"><![CDATA[
<blockquote class="uncited"><div>[07:00] Tcl error in file 'eggdrop.conf':<br>[07:00] can't read "insec": no such variable<br>    while executing<br>"utimer $insec [list reset [strlwr $chan]] "<br>    (file "scripts/Tsunami.tcl" line 76)<br>    invoked from within<br>"source scripts/Tsunami.tcl"<br>    (file "eggdrop.conf" line 1359)<br>[07:00] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)</div></blockquote>the bot dies.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Jun 10, 2003 10:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-10T09:34:10-04:00</updated>

		<published>2003-06-10T09:34:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21582#p21582</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21582#p21582"/>
		<title type="html"><![CDATA[Caesar's tsunami.tcl shows an error in partyline.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21582#p21582"><![CDATA[
Replace the folowing stuff:<div class="codebox"><p>Code: </p><pre><code>utimer $insec [list reset [strlwr $chan]]utimer $insec [list remove [strlwr $nick]]</code></pre></div>and:<div class="codebox"><p>Code: </p><pre><code># remove #proc remove {nick} {   global blist  set index [lsearch -exact $blist [strlwr $nick]]   set blist [lreplace $blist $index $index]  return}</code></pre></div>and should be working fine.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Jun 10, 2003 9:34 am</p><hr />
]]></content>
	</entry>
	</feed>
