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

	<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>2006-06-19T07:50:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[FcLan]]></name></author>
		<updated>2006-06-19T07:50:10-04:00</updated>

		<published>2006-06-19T07:50:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64183#p64183</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64183#p64183"/>
		<title type="html"><![CDATA[Egghttp problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64183#p64183"><![CDATA[
sorry, it does not help me   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6791">FcLan</a> — Mon Jun 19, 2006 7:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-06-16T10:38:24-04:00</updated>

		<published>2006-06-16T10:38:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64098#p64098</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64098#p64098"/>
		<title type="html"><![CDATA[Egghttp problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64098#p64098"><![CDATA[
It should only change, when the page actually changes. I can see only these strange things:<br><div class="codebox"><p>Code: </p><pre><code>        set count 3                   if {$count=="5"} {return} </code></pre></div>Will be always false... you could also write 'if 0 {return}' <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><div class="codebox"><p>Code: </p><pre><code>     set news "$something" </code></pre></div>redudant... just use news from beginning or continue with something. btw you dont need these "" around variables as long you don't operate with strings that might cause to false list interpretations (or simply for code readablility/clearity)<br><div class="codebox"><p>Code: </p><pre><code>      set news.old "$news" ...             if {$news != "news.old"} { </code></pre></div>Look like you wanted to write '$news != $news.old' instead <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> (putting around "" at this one, will even cause the unexpected behavior that it compares '$news' with '$news' + '.old' <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">)<br><div class="codebox"><p>Code: </p><pre><code>         incr count }</code></pre></div>since count is no global var (and should be avoided to be used by that common name), it will only make the proc return the value '4' and value gets lost..<br><br>maybe some of these hints help you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Fri Jun 16, 2006 10:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FcLan]]></name></author>
		<updated>2006-06-16T09:20:12-04:00</updated>

		<published>2006-06-16T09:20:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64095#p64095</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64095#p64095"/>
		<title type="html"><![CDATA[Egghttp problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64095#p64095"><![CDATA[
ok, I`ll look, but why bot reply the same text, what`s wrong?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6791">FcLan</a> — Fri Jun 16, 2006 9:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-06-16T09:02:22-04:00</updated>

		<published>2006-06-16T09:02:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64093#p64093</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64093#p64093"/>
		<title type="html"><![CDATA[Egghttp problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64093#p64093"><![CDATA[
you are not using egghttp anything... you use http with eggdrop, not egghttp <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<br><br>You can 'loop' procs by using timer or utimer at their end to call themselves (read tcl-commands.doc or search this board for references).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Fri Jun 16, 2006 9:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FcLan]]></name></author>
		<updated>2006-06-16T05:04:23-04:00</updated>

		<published>2006-06-16T05:04:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64087#p64087</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64087#p64087"/>
		<title type="html"><![CDATA[Egghttp problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64087#p64087"><![CDATA[
Welcome after break <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> I have some problem with my http script.. I would like that bot don`t reply this same news, text from any site, and i want to read more than only 1 st news, also if it is possible i would like to add timer to this script like in mirc for ex /timer 0 300 /anyalias, but when i trying with this script bot reply the same text.. and read only frist news<br><div class="codebox"><p>Code: </p><pre><code>package require httpbind pub - !news www:newsproc www:news {nick host handle chan text} {        set token [::http::geturl http://anysite.com -timeout 10000]        set status [::http::status $token]        ::http::cleanup $token;                 set data [http::data [http::geturl http://anysite.com]]                 regexp {&lt;html&gt;(.*?)&lt;html&gt;} $data data something     set news "$something"      set news.old "$news"        set count 3                   if {$count=="5"} {return}                     if {$news != "news.old"} {                   puthelp "PRIVMSG $chan :$news"         incr count }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6791">FcLan</a> — Fri Jun 16, 2006 5:04 am</p><hr />
]]></content>
	</entry>
	</feed>
