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

	<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>2002-10-09T23:40:56-04:00</updated>

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

		<entry>
		<author><name><![CDATA[spyda]]></name></author>
		<updated>2002-10-09T23:40:56-04:00</updated>

		<published>2002-10-09T23:40:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11855#p11855</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11855#p11855"/>
		<title type="html"><![CDATA[hate that]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11855#p11855"><![CDATA[
I found the problem right before I check this site for a answer.. Thanx ppslim for the help for looking over my script. Keep up the good work guys, you wouldn't beleive how much I have learnt over the last 60 months with the forums.<br><br>Keep the good work going<br>------------<br>ThePope<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1731">spyda</a> — Wed Oct 09, 2002 11:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-10-09T13:59:11-04:00</updated>

		<published>2002-10-09T13:59:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11842#p11842</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11842#p11842"/>
		<title type="html"><![CDATA[Error in coding]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11842#p11842"><![CDATA[
The problem is in this code.<br><div class="codebox"><p>Code: </p><pre><code>if {(![file exists $asus_file]) &amp;&amp; ($asus_to == "write")} {    set asus_file_new [open $asus_file w]    puts $asus file_new "$asus_text"    close $asus_file_new    } else {</code></pre></div>There is a missing _ in the puts line.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Oct 09, 2002 1:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spyda]]></name></author>
		<updated>2002-10-09T11:16:03-04:00</updated>

		<published>2002-10-09T11:16:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11839#p11839</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11839#p11839"/>
		<title type="html"><![CDATA[Error in coding]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11839#p11839"><![CDATA[
Hey again people.. been working hard on my script, getting bugs and fixing them!<br> Just have this little one that I am not to sure about. It does the first foreach right then packs it in<br><div class="codebox"><p>Code: </p><pre><code> foreach asus_nick [userlist] {   set asus_text "write $asus_nick"   set asus_file "$asus_nick\.db"   putlog "$asus(mfd) $asus_file $asus_text"   asus_file_write $asus(mfd) $asus_file $asus_text   }   asus_msg $idx " $asus(logo) User File Setup \002Completed\002." $asus(idx)  foreach asus_chan [channels] {   set asus_text "$asus(write) $asus_chan"   set asus_file "$asus_chan\.db"   putlog "$asus(mfd) $asus_file $asus_text"   asus_file_write $asus(mfd) $asus_file $asus_text   }</code></pre></div><div class="codebox"><p>Code: </p><pre><code>proc asus_msg {who what where} { global asus  if {$where == "msg"} {puthelp "PRIVMSG $who :$what"}  if {$where == "notc"} {puthelp "NOTICE $who :$what"}  if {$where == "idx"} {putdcc $who "$what"}}proc asus_file_write {where file text} { global asus  set asus_file "[lindex [split $where] 0]/[lindex [split $file] 0]"   set asus_to [lindex [split $text] 0]  set asus_text [lrange [split $text] 1 end]  if {(![file exists $asus_file]) &amp;&amp; $asus_to == ""} {   set asus_file_new [open $asus_file a+]   close $asus_file_new   }  if {(![file exists $asus_file]) &amp;&amp; ($asus_to == "write")} {   set asus_file_new [open $asus_file w]   puts $asus file_new "$asus_text"   close $asus_file_new    } else {  set asus_file_write [open $asus_file w]  puts $asus_file_write "$asus_text"  close $asus_file_write  } return}</code></pre></div>Now in this case all I am wanting to do is make a $hand.db and #chan.db file for every nick and every chan the eggdrop is on. <br><blockquote class="uncited"><div>«+1:11am+» &lt;Asustek&gt; [01:15] /home/kissmine/Asustest/scripts/asustek Kissmine.db write Kissmine<br>«+1:11am+» &lt;Asustek&gt; [01:15] /home/kissmine/Asustest/scripts/asustek Hammie.db write Hammie<br>«+1:11am+» &lt;Asustek&gt; [01:15] /home/kissmine/Asustest/scripts/asustek TheDeadMan.db write TheDeadMan<br>«+1:11am+» &lt;Asustek&gt; [01:15] /home/kissmine/Asustest/scripts/asustek #kissmine.db write #kissmine<br>«+1:11am+» &lt;Asustek&gt; [01:15] error on listen: can't read "asus": variable is array</div></blockquote>That is the debug that i am getting from my putlog and this error... No idea what is going on.. other than that it all works fine<br><br>Thanx guys<br>------------<br>ThePope<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1731">spyda</a> — Wed Oct 09, 2002 11:16 am</p><hr />
]]></content>
	</entry>
	</feed>
