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

	<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>2005-07-08T17:20:27-04:00</updated>

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

		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-07-08T17:20:27-04:00</updated>

		<published>2005-07-08T17:20:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52054#p52054</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52054#p52054"/>
		<title type="html"><![CDATA[egghttp again]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52054#p52054"><![CDATA[
I posted it <a href="http://forum.egghelp.org/viewtopic.php?t=9991" class="postlink">here</a>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Fri Jul 08, 2005 5:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ghosted]]></name></author>
		<updated>2005-07-08T12:43:01-04:00</updated>

		<published>2005-07-08T12:43:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51997#p51997</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51997#p51997"/>
		<title type="html"><![CDATA[egghttp again]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51997#p51997"><![CDATA[
i tried modifying green's tv tcl for another website for !today, !tommorrow, but i can't seem to get any data when i call it from dcc<br><br><br># Config<br>set url "<a href="http://www.thefutoncritic.com/cgi/calendar.cgi?view=whatsnew" class="postlink">http://www.thefutoncritic.com/cgi/calen ... w=whatsnew</a>"<br>set dcctrigger "example"<br># End of config<br>    <br>if {![info exists egghttp(version)]} {<br>  putlog "egghttp.tcl was NOT successfully loaded."<br>  putlog "example.tcl has not been loaded as a result."<br>} else {<br>  proc your_callbackproc {sock} {<br>    global url<br>    set headers [egghttp:headers $sock]<br>    set data [egghttp:data $sock]<br><br> set data [string map {"\n" ""} $data]<br> set data [string map {"&lt;/tr&gt;" "&lt;/tr&gt;\n"} $data]<br> set data [string map {"&lt;/div&gt;" "&lt;/div&gt;\n"} $data]<br>set data [string map {"&lt;/td&gt;" "&lt;/td&gt;~"} $data]<br> set data [string map {"f-normal\"&gt;" "f-normal\"&gt;~"} $data]<br><br>set parse 0<br> foreach line [split $data \n] {<br>  if [string match -noc "*&lt;span class='bigorange'&gt;*" $line] {set parse 1}<br>  if {$parse&amp;&amp;[string match -noc *&lt;span class='bigorange'&gt;7/8/2005 (friday)&lt;/span&gt;* $line]} {return}<br><br> if {$parse} {<br>    <br>regsub -all {&lt;(.|\n)*?&gt;} $line {} clean<br>    set out [join $clean]<br>putlog "$out"<br>}<br>  }<br>}<br> <br>bind dcc o|o $dcctrigger our:dcctrigger<br>proc our:dcctrigger {hand idx text} {<br>    global url<br>    set sock [egghttp:geturl $url your_callbackproc]<br>    return 1<br>  }<br><br>  putlog "example.tcl has been successfully loaded."<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6454">ghosted</a> — Fri Jul 08, 2005 12:43 pm</p><hr />
]]></content>
	</entry>
	</feed>
