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

	<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-28T04:24:26-04:00</updated>

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

		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2004-02-28T04:24:26-04:00</updated>

		<published>2004-02-28T04:24:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34068#p34068</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34068#p34068"/>
		<title type="html"><![CDATA[creating a check...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34068#p34068"><![CDATA[
ok - I've set the global vars at the top and put my check in just before the putserv:<br><br>if {$rtrlast != $rtr} {<br>set rtrlast $rtr<br><br>but it's not sending anything to the channel even if the headline is new... <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 28, 2004 4:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2004-02-28T00:58:32-04:00</updated>

		<published>2004-02-28T00:58:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34066#p34066</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34066#p34066"/>
		<title type="html"><![CDATA[creating a check...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34066#p34066"><![CDATA[
It has to download and parse the file before it can check to see if the headline is repeated. Just do the check right before the putserv.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sat Feb 28, 2004 12:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2004-02-27T19:08:49-04:00</updated>

		<published>2004-02-27T19:08:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34060#p34060</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34060#p34060"/>
		<title type="html"><![CDATA[creating a check...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34060#p34060"><![CDATA[
hmmm thanks - but in this case the vars I need to check so the headline dosn't repeat are set near the end of the proc operation so not sure how that works...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Fri Feb 27, 2004 7:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dollar]]></name></author>
		<updated>2004-02-26T12:05:24-04:00</updated>

		<published>2004-02-26T12:05:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34010#p34010</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34010#p34010"/>
		<title type="html"><![CDATA[creating a check...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34010#p34010"><![CDATA[
<blockquote class="uncited"><div>what does that mean dollar?</div></blockquote>You don't replace "set" with "global", you set your variables and at the top of each proc you want to use them with add "global &lt;varname without $&gt;". Example: <br>proc abc {args} {global varname; set varname 123}<br><br>proc cba {args} {global varname; do stuff with $varname}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4046">dollar</a> — Thu Feb 26, 2004 12:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2004-02-25T22:31:25-04:00</updated>

		<published>2004-02-25T22:31:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33991#p33991</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33991#p33991"/>
		<title type="html"><![CDATA[creating a check...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33991#p33991"><![CDATA[
what does that mean dollar?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Wed Feb 25, 2004 10:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dollar]]></name></author>
		<updated>2004-02-25T15:01:47-04:00</updated>

		<published>2004-02-25T15:01:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33984#p33984</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33984#p33984"/>
		<title type="html"><![CDATA[creating a check...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33984#p33984"><![CDATA[
<blockquote class="uncited"><div>thanks will try that - to set that do you replace 'set' with 'global'?</div></blockquote>No. ( <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=4046">dollar</a> — Wed Feb 25, 2004 3:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2004-02-25T01:43:04-04:00</updated>

		<published>2004-02-25T01:43:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33969#p33969</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33969#p33969"/>
		<title type="html"><![CDATA[creating a check...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33969#p33969"><![CDATA[
thanks will try that - to set that do you replace 'set' with 'global'?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Wed Feb 25, 2004 1:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2004-02-25T01:35:04-04:00</updated>

		<published>2004-02-25T01:35:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33968#p33968</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33968#p33968"/>
		<title type="html"><![CDATA[creating a check...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33968#p33968"><![CDATA[
Have you tried using a global variable to save the headline? Then next time, check the headline against the saved headline and if it's the same, don't print it out.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Wed Feb 25, 2004 1:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2004-02-24T22:48:48-04:00</updated>

		<published>2004-02-24T22:48:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33965#p33965</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33965#p33965"/>
		<title type="html"><![CDATA[creating a check...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33965#p33965"><![CDATA[
hi<br><br>I'm trying to make a check for this script so the headline posted won't repeat if it's the same the next time it retrieves. I've tried a few things but no luck yet...<br><br>proc pub:readaap { nick uhost handle channel arg } {<br>set url <a href="http://www.url.com" class="postlink">http://www.url.com</a><br>set file news/news.txt<br>exec lynx -preparsed -dump -width=5000 $url &gt; $file<br>set aapf [open $file r] <br>set data [read $aapf]<br>foreach line [split $data \n] {<br>if {[string match *17\]* $line]} {<br>set aap [string range $line 7 end]<br>foreach lines [split $data \n] {<br>if {[string match *17.* $lines]} {<br>set aapurl [string range $lines 5 end]<br>putserv "PRIVMSG #Newsroom :7,7 1,15 [gettime +0]ET $aap - AAP "<br>putserv "NOTICE #Newsroom2 :$aapurl"<br>break<br>}<br>}<br>}<br>}<br>}<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> — Tue Feb 24, 2004 10:48 pm</p><hr />
]]></content>
	</entry>
	</feed>
