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

	<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-01-08T10:25:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-12-11T03:37:55-04:00</updated>

		<published>2005-12-11T03:37:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58160#p58160</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58160#p58160"/>
		<title type="html"><![CDATA[reading from a website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58160#p58160"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>       eval [::http::data $token]</code></pre></div></div></blockquote>that won't work as intended, you are evaluating in a proc, not in the global context in which that script most likely expects to be evaluated; use [uplevel]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Dec 11, 2005 3:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-01-08T10:25:36-04:00</updated>

		<published>2005-12-11T00:42:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58152#p58152</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58152#p58152"/>
		<title type="html"><![CDATA[reading from a website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58152#p58152"><![CDATA[
not directly, but you could use http::geturl to get the script and eval its content.<br><div class="codebox"><p>Code: </p><pre><code>package require http 2.4::http::geturl {http://blah.net/somescript.tcl} -command httploadscriptproc httploadscript {token} {   if {[::http::ncode $token] == 200} {       uplevel #0 [::http::data $token]   } else {       putlog "Failed to load file from website: [::http::error $token]"   }   ::http::cleanup $token   return 0}</code></pre></div>use at your own risk, since if the content of the site changes and contains some bad code, someone might be able to takeover your bot.<br>Also note that the script will be loaded asyncron, meaning it will most likely be loaded at last (so put all source commands that require that script to be already loaded after the eval line).<br><br>Edit: eval -&gt; uplevel like demond mentioned.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun Dec 11, 2005 12:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LiquidIce]]></name></author>
		<updated>2005-12-10T22:19:16-04:00</updated>

		<published>2005-12-10T22:19:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58149#p58149</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58149#p58149"/>
		<title type="html"><![CDATA[reading from a website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58149#p58149"><![CDATA[
is it possible to read a tcl from website  <a href="http://blah.net/somescript.tcl" class="postlink">http://blah.net/somescript.tcl</a><br><br>source <a href="http://blah.net/somescript.tcl" class="postlink">http://blah.net/somescript.tcl</a><br>???<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4380">LiquidIce</a> — Sat Dec 10, 2005 10:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-12-10T01:31:26-04:00</updated>

		<published>2005-12-10T01:31:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58132#p58132</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58132#p58132"/>
		<title type="html"><![CDATA[reading from a website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58132#p58132"><![CDATA[
yes<br><br>see any autoupdated script, for example <a href="http://demond.net/spambuster.tcl" class="postlink">spambuster</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Dec 10, 2005 1:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LiquidIce]]></name></author>
		<updated>2005-12-09T20:31:28-04:00</updated>

		<published>2005-12-09T20:31:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58129#p58129</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58129#p58129"/>
		<title type="html"><![CDATA[reading from a website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58129#p58129"><![CDATA[
Is it possible to read a script from a website. Such as unreal ircd has remote includes function. can this be done by the bot or no?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4380">LiquidIce</a> — Fri Dec 09, 2005 8:31 pm</p><hr />
]]></content>
	</entry>
	</feed>
