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

	<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>2018-10-02T09:09:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[jsl]]></name></author>
		<updated>2018-10-02T09:09:38-04:00</updated>

		<published>2018-10-02T09:09:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107091#p107091</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107091#p107091"/>
		<title type="html"><![CDATA[Eggdrop fails to connect to external urls]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107091#p107091"><![CDATA[
I have a tcl script that's supposed to fetch info (title) of links that are posted to channels. However recently it suddenly stopped working. When a link is posted at a channel, the bot tells me this (for example):<br><br><em class="text-italics">Connection to <a href="https://www.google.com" class="postlink">https://www.google.com</a> failed</em><br><br>It seems that that error message is produced by the tcl script ( <a href="https://github.com/teeli/urltitle/blob/master/urltitle.tcl" class="postlink">https://github.com/teeli/urltitle/blob/ ... ltitle.tcl</a> ), like this:<br><div class="codebox"><p>Code: </p><pre><code>if {[catch {set http [Fetch $url -timeout $timeout]} results]} {        putlog "Connection to $url failed"</code></pre></div>So apparently it's timing out (it gives the message instantly when an url is posted at the channel). Same thing with both http and https links.<br><br>It worked fine for months, until this happened. I made no changes anywhere, it just suddenly started happening. I tried to restart the bot but it didn't fix it.<br><br>Could it be that the server admin has simply prevented the bot from connecting to url's in any way...?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8342">jsl</a> — Tue Oct 02, 2018 9:09 am</p><hr />
]]></content>
	</entry>
	</feed>
