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

	<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-02-23T21:08:54-04:00</updated>

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

		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2004-02-23T21:08:54-04:00</updated>

		<published>2004-02-23T21:08:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33927#p33927</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33927#p33927"/>
		<title type="html"><![CDATA[stopping at one line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33927#p33927"><![CDATA[
anyone able to help me with this one? nothing I've tried is working...<br><br>so near but so far!<br><br>thanks again...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Mon Feb 23, 2004 9:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2004-02-21T19:10:24-04:00</updated>

		<published>2004-02-21T19:10:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33830#p33830</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33830#p33830"/>
		<title type="html"><![CDATA[stopping at one line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33830#p33830"><![CDATA[
I got around some other problems by using your gettok proc user <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> now the only thing that dosn't work is the compare so it dosn't repeat same items...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Sat Feb 21, 2004 7:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2004-02-21T19:07:55-04:00</updated>

		<published>2004-02-21T19:07:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33828#p33828</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33828#p33828"/>
		<title type="html"><![CDATA[stopping at one line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33828#p33828"><![CDATA[
thanks - have removed the "." from it - now I get either errors for can't read $mkwlast or wrong args - should be set varname newvalue<br><br>if {$mkwlast != $mkw} {<br>set mkwlast $mkw {<br><br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Sat Feb 21, 2004 7:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-02-21T18:49:12-04:00</updated>

		<published>2004-02-21T18:49:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33827#p33827</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33827#p33827"/>
		<title type="html"><![CDATA[stopping at one line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33827#p33827"><![CDATA[
<blockquote class="uncited"><div>Tcl error [pub:readmkw]: syntax error in expression "$mkw.last != $mkw": extra tokens at end of expression</div></blockquote>That's due to the "." in your variable name. If you want to use special characters in your variable names you have to enclose the name in braces so tcl knows where the name ends. Eg: ${mkw.last}<br>Check <a href="http://tcl.tk/man/tcl8.4/TclCmd/Tcl.htm#M11" class="postlink">this page</a> for details.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Sat Feb 21, 2004 6:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2004-02-21T18:27:01-04:00</updated>

		<published>2004-02-21T18:27:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33826#p33826</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33826#p33826"/>
		<title type="html"><![CDATA[stopping at one line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33826#p33826"><![CDATA[
thanks - it now stops.<br>I'm also trying to set up a check so that it dosn't post the same headline if it was posted last - something like:<br><br>if {$mkw.last != $mkw} {<br>set mkw.last $mkw {<br><br>but that dosn't quite seem to work due to:<br>Tcl error [pub:readmkw]: syntax error in expression "$mkw.last != $mkw": extra tokens at end of expression<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Sat Feb 21, 2004 6:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-02-21T18:04:37-04:00</updated>

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

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33819#p33819"><![CDATA[
This post reminds me alot of <a href="http://forum.egghelp.org/viewtopic.php?p=33786#33786" class="postlink">http://forum.egghelp.org/viewtopic.php?p=33786#33786</a><br>don't double post - go read the forum rules. (regarding your problem: use 'break' to break out of the loop)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Sat Feb 21, 2004 6:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2004-02-21T17:45:23-04:00</updated>

		<published>2004-02-21T17:45:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33814#p33814</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33814#p33814"/>
		<title type="html"><![CDATA[stopping at one line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33814#p33814"><![CDATA[
hi - I have this script to read a line in a file - it finds the line I want, but it reads the whole file to the channel - I only want it to read the first line with /04 in it...<br><br>proc pub:readmkw { nick uhost handle channel arg } { <br>set mkwf [open /home/citinews/Bots/Undernet/news/mkw2.txt r] <br>set data [read $mkwf]<br>foreach line [split $data \n] {<br>if {[string match */04* $line]} {<br>set mkw [string range $line 20 end]<br>if {[string match *\]* $mkw]} {<br>putserv "PRIVMSG #Newsroom2 :4,4 1,15 [gettime -18]ET $mkw "<br>} else {<br>putserv "PRIVMSG #Newsroom2 :4,4 4,15 [gettime -18]ET * $mkw "<br>}<br>}<br>}<br>}<br><br>thanks...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Sat Feb 21, 2004 5:45 pm</p><hr />
]]></content>
	</entry>
	</feed>
