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

	<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-01-16T19:50:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[SmokeyOne]]></name></author>
		<updated>2003-01-16T19:50:17-04:00</updated>

		<published>2003-01-16T19:50:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15439#p15439</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15439#p15439"/>
		<title type="html"><![CDATA[small trouble with writeing to a file from dcc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15439#p15439"><![CDATA[
nevermind, I think I'm about blind as a bat, but that's okay.  After sleeping for awhile and comming back to it I got it hehe even found my little bug close #fs should have been close $fs. <br><br>thanks for all the help on this.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2530">SmokeyOne</a> — Thu Jan 16, 2003 7:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SmokeyOne]]></name></author>
		<updated>2003-01-16T19:42:32-04:00</updated>

		<published>2003-01-16T19:42:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15437#p15437</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15437#p15437"/>
		<title type="html"><![CDATA[small trouble with writeing to a file from dcc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15437#p15437"><![CDATA[
okay I read it, but i guess its not helping, I'm still getting the tcl error for $text though I thought I already defind it.  am I missing a "catch" statment here or something ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2530">SmokeyOne</a> — Thu Jan 16, 2003 7:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SmokeyOne]]></name></author>
		<updated>2003-01-16T08:43:58-04:00</updated>

		<published>2003-01-16T08:43:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15397#p15397</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15397#p15397"/>
		<title type="html"><![CDATA[small trouble with writeing to a file from dcc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15397#p15397"><![CDATA[
you want a honest answer ? i forgot lol, sorry about that.I'll look though it, but only to get lost again =/<br><br>Well that and I was too tired to even try to read the screen anymore, knowing what the error is now I'm sure i forgot to define $text that i is why its giveing me that error.<br><br>I'll give it a go and try try try again<br><br>Thanks for the help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2530">SmokeyOne</a> — Thu Jan 16, 2003 8:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-01-16T04:54:30-04:00</updated>

		<published>2003-01-16T04:54:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15378#p15378</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15378#p15378"/>
		<title type="html"><![CDATA[small trouble with writeing to a file from dcc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15378#p15378"><![CDATA[
Why don't you read the .doc file that I've told you to read? The answer to your question is outstretched there..<br><br>         bind dcc &lt;flags&gt; &lt;command&gt; &lt;proc&gt;<br>         procname &lt;handle&gt; &lt;idx&gt; &lt;text&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Jan 16, 2003 4:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SmokeyOne]]></name></author>
		<updated>2003-01-16T04:40:35-04:00</updated>

		<published>2003-01-16T04:40:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15376#p15376</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15376#p15376"/>
		<title type="html"><![CDATA[small trouble with writeing to a file from dcc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15376#p15376"><![CDATA[
okay i did change it and ya it works under dcc chat, but now I have a problem<br><br>Tcl error [dcc_dbadd]: no value given for parameter "text" to "dcc_dbadd"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2530">SmokeyOne</a> — Thu Jan 16, 2003 4:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SmokeyOne]]></name></author>
		<updated>2003-01-16T04:33:07-04:00</updated>

		<published>2003-01-16T04:33:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15374#p15374</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15374#p15374"/>
		<title type="html"><![CDATA[thanks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15374#p15374"><![CDATA[
i thank you for your help, I'll give it a shot and see if it works out. if not, i messed up somewhere =/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2530">SmokeyOne</a> — Thu Jan 16, 2003 4:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-01-16T04:22:39-04:00</updated>

		<published>2003-01-16T04:22:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15373#p15373</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15373#p15373"/>
		<title type="html"><![CDATA[small trouble with writeing to a file from dcc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15373#p15373"><![CDATA[
Oh. Seems that I've skiped an line.. I was sleepy when I typed the answer  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> sorry.. anyway, seems that the second answer is good <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> At least that I can do..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Jan 16, 2003 4:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-01-16T03:49:59-04:00</updated>

		<published>2003-01-16T03:49:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15372#p15372</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15372#p15372"/>
		<title type="html"><![CDATA[Re: now that I think about it]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15372#p15372"><![CDATA[
<blockquote class="uncited"><div>now that I think about it, how would i set it to go to the end of file and write the text?</div></blockquote>read what he said ceasar... set file [open "$file" w] will not add text to the end of the file, it will overwrite the whole file, set file [open "$file" a]  is the right syntax if you want to add text to the end of the file<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu Jan 16, 2003 3:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-01-16T02:56:24-04:00</updated>

		<published>2003-01-16T02:56:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15371#p15371</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15371#p15371"/>
		<title type="html"><![CDATA[small trouble with writeing to a file from dcc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15371#p15371"><![CDATA[
replace<br>set file [open "$file" a]<br><br>with<br>set file [open "$file" w]<br><br>replace<br>bind dcc - .dbadd dcc_dbadd <br><br>with<br>bind dcc - dbadd dcc_dbadd<br><br>Also you may want to read again the tcl-commands.doc file, for how to do corectly a bind for dcc..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Jan 16, 2003 2:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SmokeyOne]]></name></author>
		<updated>2003-01-15T21:38:41-04:00</updated>

		<published>2003-01-15T21:38:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15369#p15369</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15369#p15369"/>
		<title type="html"><![CDATA[this is what i created]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15369#p15369"><![CDATA[
bind dcc - .dbadd dcc_dbadd<br>proc dcc_dbadd {idx uhost hand text dest} {<br>        putdcc "\002New info added to the FAQ database by $nick\002"<br>        set file "~/.faq"<br>        set fs [open $file a+]<br>        puts $fs "$text"<br>        close #fs<br>}<br><br>now when i try to do .dbadd, it get What? you need .help.<br><br>I'm guessing maybe "uhost" shouldn't be there, but then again i'm not very good at this stuff =/.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2530">SmokeyOne</a> — Wed Jan 15, 2003 9:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SmokeyOne]]></name></author>
		<updated>2003-01-15T20:10:01-04:00</updated>

		<published>2003-01-15T20:10:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15367#p15367</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15367#p15367"/>
		<title type="html"><![CDATA[now that I think about it]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15367#p15367"><![CDATA[
now that I think about it, how would i set it to go to the end of file and write the text?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2530">SmokeyOne</a> — Wed Jan 15, 2003 8:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SmokeyOne]]></name></author>
		<updated>2003-01-15T19:51:12-04:00</updated>

		<published>2003-01-15T19:51:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15366#p15366</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15366#p15366"/>
		<title type="html"><![CDATA[small trouble with writeing to a file from dcc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15366#p15366"><![CDATA[
I'm not sure the right syntax for writeing to a file from within the dcc partyline. I was thinking of something like this.<br><br>bind dcc n .dbadd dcc_dbadd<br><br>proc dcc_dbadd {idx handle uhost input} {<br>  set file [open "$file" a]<br>   puts $file "info in text"<br>  close $file<br>  }<br>}<br><br>I'm really not sure if this is even close to the right syntax, I'm not that good with tcl, but I'm learning as i go. Thanks in advance for any help you give me<br><br>Smokey<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2530">SmokeyOne</a> — Wed Jan 15, 2003 7:51 pm</p><hr />
]]></content>
	</entry>
	</feed>
