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

	<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>2005-07-08T04:43:27-04:00</updated>

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

		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-07-08T04:43:27-04:00</updated>

		<published>2005-07-08T04:43:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51984#p51984</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51984#p51984"/>
		<title type="html"><![CDATA[Question about lists]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51984#p51984"><![CDATA[
EditPlus2 and notepad++ both have syntax hilighting and auto indent features, the list goes on. Great if your not used to or have a linux box to play with emacs <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Fri Jul 08, 2005 4:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-07-07T22:11:27-04:00</updated>

		<published>2005-07-07T22:11:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51964#p51964</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51964#p51964"/>
		<title type="html"><![CDATA[Question about lists]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51964#p51964"><![CDATA[
for a complex Tcl project, using a programmer's editor like emacs, with syntax highlighting etc, is a necessity<br><br>for a simple eggdrop script (99% of bot scripts would classify in that category), Notepad will suffice<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Thu Jul 07, 2005 10:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-07-07T17:59:23-04:00</updated>

		<published>2005-07-07T17:59:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51954#p51954</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51954#p51954"/>
		<title type="html"><![CDATA[Question about lists]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51954#p51954"><![CDATA[
EditPlus 2 is my all time favourite; been using it for at least 4 years now. The document format feature (among many) is excellent. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Thu Jul 07, 2005 5:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-07-07T17:55:02-04:00</updated>

		<published>2005-07-07T17:55:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51953#p51953</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51953#p51953"/>
		<title type="html"><![CDATA[Question about lists]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51953#p51953"><![CDATA[
I personally only like wordpad <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Jul 07, 2005 5:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-07-07T15:30:58-04:00</updated>

		<published>2005-07-07T15:30:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51939#p51939</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51939#p51939"/>
		<title type="html"><![CDATA[Question about lists]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51939#p51939"><![CDATA[
You should not really use wordpad or word for that matter when writing scripts. There are good programs out there which are available to use, some free some not. I Personally use EditPlus 2 to work with TCL / PHP / HTML etc etc and is an awsome client. I do however use Notepad++ which is freeware and open source which you can download from <a href="http://notepad-plus.sourceforge.net/uk/about.php" class="postlink">here.</a> This does pretty much exaclty what EditPlus2 does but its free. Trust me when i say once you have used these programs you will never go back to notepad / wordpad ever again  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Thu Jul 07, 2005 3:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-07-07T11:23:24-04:00</updated>

		<published>2005-07-07T11:23:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51925#p51925</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51925#p51925"/>
		<title type="html"><![CDATA[Question about lists]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51925#p51925"><![CDATA[
i think its to do with notepad's format. Use Wordpad, its alot better.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Thu Jul 07, 2005 11:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[XceL]]></name></author>
		<updated>2005-07-07T04:50:30-04:00</updated>

		<published>2005-07-07T04:50:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51911#p51911</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51911#p51911"/>
		<title type="html"><![CDATA[Question about lists]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51911#p51911"><![CDATA[
Trying not to clutter up the forums too bad, but this question relates to the script. I have the list of files be inputed into a text file, followed by a carraige return then dcced to the user, if desplayed in notepad why is it a block and not a new line? Thanks, the code to input into the file looks like this.<br><div class="codebox"><p>Code: </p><pre><code>      puts $file [join $flist "\n"]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4402">XceL</a> — Thu Jul 07, 2005 4:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[XceL]]></name></author>
		<updated>2005-07-06T23:46:27-04:00</updated>

		<published>2005-07-06T23:46:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51905#p51905</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51905#p51905"/>
		<title type="html"><![CDATA[Question about lists]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51905#p51905"><![CDATA[
Thanks, I had the a+ switch on there for it to create the file at first. Then removed it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4402">XceL</a> — Wed Jul 06, 2005 11:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-07-06T23:31:24-04:00</updated>

		<published>2005-07-06T23:31:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51904#p51904</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51904#p51904"/>
		<title type="html"><![CDATA[Question about lists]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51904#p51904"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set fdb [open /home/xcel/eggdrop/filesys/fs a+]</code></pre></div>this sets the file pointer after EOF; you need to read from the beginning:<div class="codebox"><p>Code: </p><pre><code>set fdb [open /home/xcel/eggdrop/filesys/fs r]</code></pre></div>also:<div class="codebox"><p>Code: </p><pre><code>if {[lsearch lines $file] == -1}</code></pre></div>should be:<div class="codebox"><p>Code: </p><pre><code>if {[lsearch $lines $file*] == -1}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Jul 06, 2005 11:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[XceL]]></name></author>
		<updated>2005-07-06T22:23:09-04:00</updated>

		<published>2005-07-06T22:23:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51903#p51903</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51903#p51903"/>
		<title type="html"><![CDATA[Question about lists]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51903#p51903"><![CDATA[
I need some help with some code. When I use this it just gives me the same results each time, which is:<br><blockquote class="uncited"><div>[21:00] &lt;@********&gt; 0 Files before update.<br>[21:00] &lt;@********&gt; 3 Files after update.<br>[21:00] &lt;@********&gt; File database updated succesfully. There were 3 Files added and 0 Files removed.</div></blockquote><div class="codebox"><p>Code: </p><pre><code>proc update {nick uhost hand chan text} {  set fdb [open /home/xcel/eggdrop/filesys/fs a+]  set data [read $fdb]  close $fdb  set afs 0  set rfs 0  set lines [split $data \n]  putquick "privmsg $chan :[llength $lines] Files before update."  foreach file [glob /home/xcel/eggdrop/filesys/*.url] {    if {[lsearch lines $file] == -1} {      lappend lines $file|[file atime $file]      incr afs    }  }  putquick "privmsg $chan :[llength $lines] Files after update. $lines"  set fdb [open /home/xcel/eggdrop/filesys/fs w]  foreach element $lines {    puts $fdb "$element"  }  close $fdb  set line1 "File database updated succesfully."  set line2 "There were $afs Files added and $rfs Files removed."  putquick "privmsg $chan :$line1 $line2"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4402">XceL</a> — Wed Jul 06, 2005 10:23 pm</p><hr />
]]></content>
	</entry>
	</feed>
