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

	<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-04-06T23:52:56-04:00</updated>

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

		<entry>
		<author><name><![CDATA[qw3rty]]></name></author>
		<updated>2006-04-06T23:52:56-04:00</updated>

		<published>2006-04-06T23:52:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61708#p61708</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61708#p61708"/>
		<title type="html"><![CDATA[working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61708#p61708"><![CDATA[
is this working or still working for anyone else?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7584">qw3rty</a> — Thu Apr 06, 2006 11:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-10-07T15:26:46-04:00</updated>

		<published>2005-10-07T15:26:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56423#p56423</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56423#p56423"/>
		<title type="html"><![CDATA[tvprog.tcl - even more tv stuff (!today and !tomorrow)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56423#p56423"><![CDATA[
other than personal preferences and habits (everyone has theirs), there couldn't possibly exist a single reason for choosing egghttp over Tcl's built-in http package - the latter is much superior to the former<br><br>egghttp might have been much more useful several years ago, but since then both eggdrop and Tcl have made huge improvements<br><br>from egghttp's header:<blockquote class="uncited"><div># I noticed the need when using the http package for tcl,<br># and it would not, for some reason or other, properly<br># use asynchronous connections or not do anything at all when<br># trying to use async connections.<br># ^- As it turns out, eggdrop1.1.5 (and I believe 1.3.x) does<br>#    not have Tcl_DoOneEvent in the source, so the http package fails<br>#    for async connections, thus the need for this script.<br>#<br># Realizing eggdrop already had the ability to make async connections,<br># I created this considerably smaller tcl (in comparison to the http<br># package).</div></blockquote>none of these points is valid today; I use async [http::geturl] on multiple rss feeds (HTTP connections) simultaneously, without the slightest problem or bogging down the bot, let alone crashing it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Oct 07, 2005 3:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-10-07T14:57:58-04:00</updated>

		<published>2005-10-07T14:57:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56422#p56422</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56422#p56422"/>
		<title type="html"><![CDATA[tvprog.tcl - even more tv stuff (!today and !tomorrow)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56422#p56422"><![CDATA[
many users had issues with http package crashing the bot. I never got known which systems were affected, but it might have been a windrop pre TCL 8.4.9 issue (windrop admin changed something in the way he compiled TCL for cygwin). So it might nolonger be neccesary to use egghttp, but it would be a hassle to rewrite it back to http <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Fri Oct 07, 2005 2:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-10-07T13:44:25-04:00</updated>

		<published>2005-10-07T13:44:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56420#p56420</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56420#p56420"/>
		<title type="html"><![CDATA[tvprog.tcl - even more tv stuff (!today and !tomorrow)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56420#p56420"><![CDATA[
so you get to ask stupid questions<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Fri Oct 07, 2005 1:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[phab]]></name></author>
		<updated>2005-10-07T04:25:41-04:00</updated>

		<published>2005-10-07T04:25:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56416#p56416</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56416#p56416"/>
		<title type="html"><![CDATA[tvprog.tcl - even more tv stuff (!today and !tomorrow)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56416#p56416"><![CDATA[
Why don't you use the http package?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6630">phab</a> — Fri Oct 07, 2005 4:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-09-28T03:34:15-04:00</updated>

		<published>2005-09-28T03:34:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56151#p56151</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56151#p56151"/>
		<title type="html"><![CDATA[tvprog.tcl - even more tv stuff (!today and !tomorrow)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56151#p56151"><![CDATA[
try using the most recent egghttp vesion.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Wed Sep 28, 2005 3:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TaRgEt]]></name></author>
		<updated>2005-09-27T16:12:02-04:00</updated>

		<published>2005-09-27T16:12:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56141#p56141</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56141#p56141"/>
		<title type="html"><![CDATA[tvprog.tcl - even more tv stuff (!today and !tomorrow)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56141#p56141"><![CDATA[
[09:19] Tcl error [pub:tfctoday]: Unknown option -crlf, can be: -timeout, -query, -headers, -protocol, -useragent<br><br>how do i fix that ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6777">TaRgEt</a> — Tue Sep 27, 2005 4:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-07-08T17:19:12-04:00</updated>

		<published>2005-07-08T17:19:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52053#p52053</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52053#p52053"/>
		<title type="html"><![CDATA[tvprog.tcl - even more tv stuff (!today and !tomorrow)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52053#p52053"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>############################################# tvprog.tcl v0.1 by greenbear at gmail.com## Parse the tv-program for today and# tomorrow from thefutoncritic.com.## Enable with .chanset #channel +tv#bind pub - !today pub:tfctodaybind pub - !tomorrow pub:tfctomorrowif ![info exists egghttp(version)] {  putlog "egghttp.tcl was NOT successfully loaded."}setudef flag tvproc pub:tfctoday {nick uhost hand chan text} {if ![channel get $chan tv] return  set sock [egghttp:geturl http://www.thefutoncritic.com/cgi/calendar.cgi?view=whatsnew [list parse:tfc $chan 0] -crlf 1]}proc pub:tfctomorrow {nick uhost hand chan text} {  if ![channel get $chan tv] return  set sock [egghttp:geturl http://www.thefutoncritic.com/cgi/calendar.cgi?view=whatsnew [list parse:tfc $chan 1] -crlf 1]}proc parse:tfc {chan type sock} { set data [egghttp:data $sock] egghttp:cleanup $sock set data [string map {"\n" ""} $data] set data [string map {"&lt;td&gt;" "&lt;td&gt;\n" "&lt;/td&gt;" "&lt;/td&gt;\n"} $data] set data [string map {"&lt;/a&gt;&lt;br&gt;&lt;i&gt;" " - "} $data] set data [string map {"&lt;/p&gt;" "&lt;/p&gt;\n" "&lt;br&gt;" "&lt;br&gt;\n"} $data] if {$type} {  scan [clock format [clock scan tomorrow] -format "%m/%d/%Y"] %d/%d/%d m d y } {  scan [strftime "%m/%d/%Y"] %d/%d/%d m d y } set when "$m/$d/$y" set parse 0 foreach line [split $data \n] {  if {!$parse&amp;&amp;[string match -noc "*$when*" $line]} {set parse 1}  if {$parse&amp;&amp;[string match -noc "*middle*content*ends*" $line]} {return}  if {$parse} {   regsub -all {&lt;(.|\n)*?&gt;} $line {} clean   set out [join $clean]   if {$out==""} {return}    putserv "PRIVMSG $chan :$out"  } }}putlog "* tvprog.tcl loaded."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Fri Jul 08, 2005 5:19 pm</p><hr />
]]></content>
	</entry>
	</feed>
