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

	<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-03-11T13:28:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2004-03-11T13:28:11-04:00</updated>

		<published>2004-03-11T13:28:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34468#p34468</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34468#p34468"/>
		<title type="html"><![CDATA[stopping at one line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34468#p34468"><![CDATA[
no comment...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Thu Mar 11, 2004 1:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2004-03-11T00:14:06-04:00</updated>

		<published>2004-03-11T00:14:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34441#p34441</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34441#p34441"/>
		<title type="html"><![CDATA[stopping at one line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34441#p34441"><![CDATA[
lolol hey don't talk about arcane and strikelight like that!<br><br>rofl<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Thu Mar 11, 2004 12:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2004-03-10T20:38:39-04:00</updated>

		<published>2004-03-10T20:38:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34435#p34435</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34435#p34435"/>
		<title type="html"><![CDATA[stopping at one line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34435#p34435"><![CDATA[
you [censored] moron<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Wed Mar 10, 2004 8:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2004-03-10T18:18:07-04:00</updated>

		<published>2004-03-10T18:18:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34427#p34427</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34427#p34427"/>
		<title type="html"><![CDATA[stopping at one line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34427#p34427"><![CDATA[
thanks - will look elsewhere for help from now on.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Wed Mar 10, 2004 6:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2004-03-10T15:30:55-04:00</updated>

		<published>2004-03-10T15:30:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34422#p34422</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34422#p34422"/>
		<title type="html"><![CDATA[stopping at one line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34422#p34422"><![CDATA[
format:<div class="codebox"><p>Code: </p><pre><code>proc name {args} {    do_something    if {setting == value} {        do_something_else    } else {        sigh    }}</code></pre></div>close:<br>well, you <strong class="text-strong">have to</strong> close a file when you open it. maybe it works at the beginning but you will be getting errors soon.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Wed Mar 10, 2004 3:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2004-03-10T01:07:08-04:00</updated>

		<published>2004-03-10T01:07:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34401#p34401</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34401#p34401"/>
		<title type="html"><![CDATA[stopping at one line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34401#p34401"><![CDATA[
I formatted it in the code brackets - do you mean close the file? because it works normally without closing it...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Wed Mar 10, 2004 1:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-03-10T00:51:02-04:00</updated>

		<published>2004-03-10T00:51:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34400#p34400</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34400#p34400"/>
		<title type="html"><![CDATA[stopping at one line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34400#p34400"><![CDATA[
Format your code properly, and maybe people will show interest...<br>making the helper do the work to format it just so they can read what you are asking isn't really motivating...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Wed Mar 10, 2004 12:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2004-03-10T00:43:03-04:00</updated>

		<published>2004-03-10T00:43:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34399#p34399</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34399#p34399"/>
		<title type="html"><![CDATA[stopping at one line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34399#p34399"><![CDATA[
anyone...? I've tried various options but no luck yet...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Wed Mar 10, 2004 12:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2004-03-05T06:24:58-04:00</updated>

		<published>2004-03-05T06:24:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34262#p34262</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34262#p34262"/>
		<title type="html"><![CDATA[stopping at one line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34262#p34262"><![CDATA[
fine - if anyone else if able to help me with my original problem that would be great. thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Fri Mar 05, 2004 6:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2004-03-05T03:16:30-04:00</updated>

		<published>2004-03-05T03:16:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34259#p34259</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34259#p34259"/>
		<title type="html"><![CDATA[stopping at one line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34259#p34259"><![CDATA[
no :/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Fri Mar 05, 2004 3:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2004-03-05T00:30:22-04:00</updated>

		<published>2004-03-05T00:30:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34258#p34258</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34258#p34258"/>
		<title type="html"><![CDATA[stopping at one line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34258#p34258"><![CDATA[
is that ok?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Fri Mar 05, 2004 12:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2004-03-04T10:21:03-04:00</updated>

		<published>2004-03-04T10:21:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34232#p34232</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34232#p34232"/>
		<title type="html"><![CDATA[stopping at one line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34232#p34232"><![CDATA[
You should use the [ code ] and [ /code ] tags.<br><br>You should also close your file handle after reading it in.<br><br>It's too annoying to go through the code in any more detail without formatting, so I'll take another look when you've reposted with [ code ].<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Mar 04, 2004 10:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2004-03-04T17:05:13-04:00</updated>

		<published>2004-03-04T08:53:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34231#p34231</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34231#p34231"/>
		<title type="html"><![CDATA[stopping at one line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34231#p34231"><![CDATA[
hi - I'm trying to get this script to only set the variable and a check variable (to make sure it dosn't post the same thing twice) to only read the first line /04 appears in - but it sets the first line /04 is in, then the check says the headline is the same so it reads down to the next one and then back to the first one and so on. Can I get it to just read the first line of /04 and stop - and check if the headline has already been annouced and not announce any lines further down the file...(there are about 15 or so lines in the news page file that have /04 in them)<br><div class="codebox"><p>Code: </p><pre><code>proc pub:readmkw { nick uhost handle channel arg } {global mkwglobal mkwlastset url http://www.url.comset file news/news.txtexec lynx -preparsed -nolist -dump -width=5000 $url &gt; $fileset mkwf [open $file r] set data [read $mkwf]foreach line [split $data \n] {if {[string match */04* $line]} {set mkw [gettok $line 5- 32]if {$mkwlast != $mkw} {set mkwlast $mkwif {[string match *\]* $mkw]} {putserv "PRIVMSG #Newsroom :7,7 1,15 [gettime +0]ET $mkw "break} else {putserv "PRIVMSG #Newsroom :4,4 4,15 [gettime +0]ET $mkw "break}}}}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Thu Mar 04, 2004 8:53 am</p><hr />
]]></content>
	</entry>
	</feed>
