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

	<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>2004-10-15T09:43:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-15T09:43:00-04:00</updated>

		<published>2004-10-15T09:43:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41887#p41887</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41887#p41887"/>
		<title type="html"><![CDATA[file reading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41887#p41887"><![CDATA[
<blockquote class="uncited"><div>I thought TCL is = and mIRC is ==, I haven't scripted TCL in a while, ty anyway.</div></blockquote>TCL has the same comparators as mIRC excepting a few which are not defined.<br><br>In TCL:<blockquote class="uncited"><div>== equal to ==&gt; can also use: ([string equal -nocase $text1 $text2])<br>!= not equal to<br>=== not defined ==&gt; use: ([string equal $text1 $text2])<br>&lt; less than<br>&gt; larger than<br>&gt;= larger than or equal to<br>&lt;= smaller than or equal to</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri Oct 15, 2004 9:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-15T03:44:02-04:00</updated>

		<published>2004-10-15T03:44:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41872#p41872</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41872#p41872"/>
		<title type="html"><![CDATA[file reading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41872#p41872"><![CDATA[
<blockquote class="uncited"><div>How can I clear a file, in the TCL faq it said how to delete the last line, how about if i want to clear it</div></blockquote><a href="http://tcl.tk/man/tcl8.5/TclCmd/open.htm#M7" class="postlink">http://tcl.tk/man/tcl8.5/TclCmd/open.htm#M7</a><br><strong class="text-strong">w</strong> Open the file for writing only. <em class="text-italics">Truncate it if it exists</em>. If it doesn't exist, create a new file.<div class="codebox"><p>Code: </p><pre><code>close [open some.file w]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Oct 15, 2004 3:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-10-14T22:35:00-04:00</updated>

		<published>2004-10-14T22:35:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41870#p41870</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41870#p41870"/>
		<title type="html"><![CDATA[file reading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41870#p41870"><![CDATA[
How can I clear a file, in the TCL faq it said how to delete the last line, how about if i want to clear it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Thu Oct 14, 2004 10:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-14T19:14:34-04:00</updated>

		<published>2004-10-14T19:14:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41861#p41861</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41861#p41861"/>
		<title type="html"><![CDATA[file reading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41861#p41861"><![CDATA[
<blockquote class="uncited"><div>then it's putdcc. and if i want to read all the lines from a text do i need loop?</div></blockquote>No (use read)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Oct 14, 2004 7:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-10-14T18:15:47-04:00</updated>

		<published>2004-10-14T18:15:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41859#p41859</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41859#p41859"/>
		<title type="html"><![CDATA[file reading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41859#p41859"><![CDATA[
then it's putdcc. and if i want to read all the lines from a text do i need loop?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Thu Oct 14, 2004 6:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-14T18:14:08-04:00</updated>

		<published>2004-10-14T18:14:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41858#p41858</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41858#p41858"/>
		<title type="html"><![CDATA[Re: Dcc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41858#p41858"><![CDATA[
Do you want it to be displayed to all users or just the particular user invoking the command? (putdcc is for sending messages to a single user)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Oct 14, 2004 6:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-10-14T18:09:07-04:00</updated>

		<published>2004-10-14T18:09:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41857#p41857</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41857#p41857"/>
		<title type="html"><![CDATA[Dcc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41857#p41857"><![CDATA[
I have never scripted using Dcc<br><br>I'm trying to bind something in order for bot to send me the whole file through dcc chat to me. Now got a couple of question should i make it loop the whole file then send me what's inside it or... easier way.<br><br>PRIVMSG is for channel msging<br><br>for Dcc should i use<br><br>  putdcc &lt;idx&gt; &lt;text&gt;<br>    Description: sends text to the idx specified<br>    Returns: nothing<br>    Module: core<br>or...<br>  dccbroadcast &lt;message&gt;<br>    Description: sends a message to everyone on the party line across the<br>      botnet, in the form of "*** &lt;message&gt;" for local users and<br>      "*** (Bot) &lt;message&gt;" for users on other bots<br>    Returns: nothing<br>    Module: core<br><br>Thank you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Thu Oct 14, 2004 6:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-10-14T17:48:57-04:00</updated>

		<published>2004-10-14T17:48:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41856#p41856</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41856#p41856"/>
		<title type="html"><![CDATA[file reading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41856#p41856"><![CDATA[
Yes got it, ty, I needed to have lrange instead of lindex. Now i understand the difference betwee the 2.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Thu Oct 14, 2004 5:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-14T17:30:24-04:00</updated>

		<published>2004-10-14T17:30:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41855#p41855</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41855#p41855"/>
		<title type="html"><![CDATA[file reading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41855#p41855"><![CDATA[
<blockquote class="uncited"><div>I really need to know how to fix it. Can you tell me how please.</div></blockquote>1: call 'lindex' with the right arguments (check <a href="http://tcl.tk/man/tcl8.5/TclCmd/lindex.htm" class="postlink">http://tcl.tk/man/tcl8.5/TclCmd/lindex.htm</a> if in doubt)<br>2: call your own proc with the right number of arguments (3)<br><br>(posting your current code HERE might help if you get stuck again)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Oct 14, 2004 5:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-10-14T17:27:27-04:00</updated>

		<published>2004-10-14T17:27:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41854#p41854</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41854#p41854"/>
		<title type="html"><![CDATA[file reading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41854#p41854"><![CDATA[
I really need to know how to fix it. Can you tell me how please.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Thu Oct 14, 2004 5:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-14T17:26:09-04:00</updated>

		<published>2004-10-14T17:26:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41853#p41853</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41853#p41853"/>
		<title type="html"><![CDATA[file reading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41853#p41853"><![CDATA[
The two errors have nothing to do with each other and they explain exactly what you did wrong.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Oct 14, 2004 5:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-10-14T17:09:56-04:00</updated>

		<published>2004-10-14T17:09:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41851#p41851</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41851#p41851"/>
		<title type="html"><![CDATA[file reading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41851#p41851"><![CDATA[
[15:09] Tcl error [msg:ads]: wrong # args: should be "lindex list index"<br><br><br>I put <br><br>proc msg:ads {lindex list index} {<br><br>but...<br><br>[15:09] Tcl error [msg:ads]: called "msg:ads" with too many arguments<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Thu Oct 14, 2004 5:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-10-14T17:08:15-04:00</updated>

		<published>2004-10-14T17:08:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41850#p41850</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41850#p41850"/>
		<title type="html"><![CDATA[file reading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41850#p41850"><![CDATA[
I thought TCL is = and mIRC is ==, I haven't scripted TCL in a while, ty anyway.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Thu Oct 14, 2004 5:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-14T16:57:33-04:00</updated>

		<published>2004-10-14T16:57:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41849#p41849</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41849#p41849"/>
		<title type="html"><![CDATA[Re: file reading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41849#p41849"><![CDATA[
<blockquote class="uncited"><div>[14:48] Tcl error [msg:ads]: syntax error in expression "$adver = """</div></blockquote>Don't you mean "=="?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Oct 14, 2004 4:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-10-14T16:54:09-04:00</updated>

		<published>2004-10-14T16:54:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41848#p41848</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41848#p41848"/>
		<title type="html"><![CDATA[file reading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41848#p41848"><![CDATA[
<a href="http://www.nomorepasting.com/paste.php?pasteID=22668" class="postlink">http://www.nomorepasting.com/paste.php?pasteID=22668</a><br><br>Anyone know what's wrong the error is...<br><br>[14:48] Tcl error [msg:ads]: syntax error in expression "$adver = """<br><br>any ideas, thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Thu Oct 14, 2004 4:54 pm</p><hr />
]]></content>
	</entry>
	</feed>
