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

	<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-09-12T08:56:27-04:00</updated>

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

		<entry>
		<author><name><![CDATA[a_aa]]></name></author>
		<updated>2018-09-12T08:56:27-04:00</updated>

		<published>2018-09-12T08:56:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107056#p107056</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107056#p107056"/>
		<title type="html"><![CDATA[Error flushing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107056#p107056"><![CDATA[
<blockquote class="uncited"><div>That's not an error, it's the <em class="text-italics">putlog "Earthquake error: $error" </em> line I previously told you to add to see what was stored in $error variable.</div></blockquote>Hahahah, ok that makes sense. One last time, thank you!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12534">a_aa</a> — Wed Sep 12, 2018 8:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2018-09-12T00:45:55-04:00</updated>

		<published>2018-09-12T00:45:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107055#p107055</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107055#p107055"/>
		<title type="html"><![CDATA[Error flushing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107055#p107055"><![CDATA[
That's not an error, it's the <em class="text-italics">putlog "Earthquake error: $error" </em> line I previously told you to add to see what was stored in $error variable.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Sep 12, 2018 12:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2018-09-11T21:46:10-04:00</updated>

		<published>2018-09-11T21:46:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107053#p107053</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107053#p107053"/>
		<title type="html"><![CDATA[Get the New Earthquake Announcer v1.3]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107053#p107053"><![CDATA[
Posted the entire patched script @ <a href="http://forum.egghelp.org/viewtopic.php?t=20350" class="postlink">http://forum.egghelp.org/viewtopic.php?t=20350</a><br><br>Merky &amp; a_aa: Please get the new script (version 1.3) from the above link and report back here.<br>I can Not recreate either of your current errors from here.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Tue Sep 11, 2018 9:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[a_aa]]></name></author>
		<updated>2018-09-11T21:43:40-04:00</updated>

		<published>2018-09-11T21:43:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107052#p107052</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107052#p107052"/>
		<title type="html"><![CDATA[Error flushing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107052#p107052"><![CDATA[
One small thing, not sure it matters since the script is working but every time the script is called, !EQ, i get an incremental error reported in the partyline.<br><br>[18:33:51] Earthquake error: ::http::108<br>[18:40:59] Earthquake error: ::http::109<br>[18:41:18] Earthquake error: ::http::110<br><br>The number goes up by 1 each time. Ideas?<br><br> <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=12534">a_aa</a> — Tue Sep 11, 2018 9:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[a_aa]]></name></author>
		<updated>2018-09-11T20:21:08-04:00</updated>

		<published>2018-09-11T20:21:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107050#p107050</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107050#p107050"/>
		<title type="html"><![CDATA[Error flushing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107050#p107050"><![CDATA[
<blockquote class="uncited"><div>I said:<div class="codebox"><p>Code: </p><pre><code>::http::register https 443 tls:socket </code></pre></div>notice the lack of :'s, it's not a mistake but it's done on purpose to use this new function instead. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"></div></blockquote>My bad, sorry I did not look close enough. Thanks for all the help!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12534">a_aa</a> — Tue Sep 11, 2018 8:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[a_aa]]></name></author>
		<updated>2018-09-11T20:14:10-04:00</updated>

		<published>2018-09-11T20:14:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107049#p107049</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107049#p107049"/>
		<title type="html"><![CDATA[Error flushing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107049#p107049"><![CDATA[
I also added the <strong class="text-strong">eqnews</strong> to the line you posted and the scipt is again working.<br><br>Caesar and SpiKe^^, thanks a million, it is greatly appreciate!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12534">a_aa</a> — Tue Sep 11, 2018 8:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Merky]]></name></author>
		<updated>2018-09-11T14:46:21-04:00</updated>

		<published>2018-09-11T14:46:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107048#p107048</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107048#p107048"/>
		<title type="html"><![CDATA[Error flushing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107048#p107048"><![CDATA[
after add proc tls:socket args i get this error<br><div class="codebox"><p>Code: </p><pre><code>[01:43:01] Tcl error [::eqnews::magic_]: can't read "::eqnews::ary(events)": no such element in array[01:44:01] Tcl error [::eqnews::magic_]: can't read "::eqnews::ary(events)": no such element in array</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8625">Merky</a> — Tue Sep 11, 2018 2:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2018-09-11T12:11:40-04:00</updated>

		<published>2018-09-11T12:11:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107044#p107044</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107044#p107044"/>
		<title type="html"><![CDATA[Error flushing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107044#p107044"><![CDATA[
Your welcome. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Sep 11, 2018 12:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2018-09-11T08:40:11-04:00</updated>

		<published>2018-09-11T08:40:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107043#p107043</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107043#p107043"/>
		<title type="html"><![CDATA[Error flushing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107043#p107043"><![CDATA[
Caesar: Thank You Very Much for the Help:)<br><br>I loaded the script and applied the patches you suggested.<br>That changed the error to:<br><br>Invalid command name "tls:socket" ( <a href="https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_day.atom" class="postlink">https://earthquake.usgs.gov/earthquakes ... 5_day.atom</a> )<br><br>I changed the line you posted to:<div class="codebox"><p>Code: </p><pre><code>::http::register https 443 ::eqnews::tls:socket</code></pre></div>And now the script works as expected.<br>Good Job Caesar!<br><br>I will try to update the script on the forum and archive.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Tue Sep 11, 2018 8:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2018-09-11T00:59:58-04:00</updated>

		<published>2018-09-11T00:59:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107042#p107042</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107042#p107042"/>
		<title type="html"><![CDATA[Error flushing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107042#p107042"><![CDATA[
I said:<div class="codebox"><p>Code: </p><pre><code>::http::register https 443 tls:socket </code></pre></div>notice the lack of :'s, it's not a mistake but it's done on purpose to use this new function instead. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Sep 11, 2018 12:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[a_aa]]></name></author>
		<updated>2018-09-10T20:06:42-04:00</updated>

		<published>2018-09-10T20:06:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107041#p107041</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107041#p107041"/>
		<title type="html"><![CDATA[Error flushing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107041#p107041"><![CDATA[
Hey Caesar,<br><br>I tried the edits that you posted and I still get the error. I tried all 3 options that were on the link provided to the TCL page and still no luck.<br><br>I'm not sure if it matters where the the code is put but here is mine. I placed it before the catch statement.<div class="codebox"><p>Code: </p><pre><code>  # Sept 10 added the following   proc tls:socket args {       set opts [lrange $args 0 end-2]       set host [lindex $args end-1]       set port [lindex $args end]        ::tls::socket -servername $host {*}$opts $host $port      # ::tls::socket -ssl3 false -ssl2 false -tls1 true -servername $host {*}$opts $host $port     # ::tls::socket -ssl3 false -ssl2 false -tls1 true -tls1.2 false -tls1.1 false \     # -servername $host {*}$opts $host $port               } </code></pre></div><div class="codebox"><p>Code: </p><pre><code>      # ::http::register https 443 [list ::tls::socket -tls1 1]  ;# added: plat_ #       ::http::register https 443 ::tls::socket</code></pre></div>This is my status report from telnet and then running !eq<blockquote class="uncited"><div>Admin: evilbot &lt;email: <a href="mailto:testbot@testbotnet.org">testbot@testbotnet.org</a>&gt;<br>Config file: testbot<br>OS: Linux 4.17.17-x86_64-linode116<br>Process ID: 22819 (parent 1)<br>Tcl library: /usr/share/tcltk/tcl8.6<br>Tcl version: 8.6.5 (header version 8.6.5)<br>Tcl is threaded.<br>TLS support is enabled.<br>TLS library: OpenSSL 1.0.2g  1 Mar 2016<br>IPv6 support is enabled.<br>Socket table: 20/100<br>Loaded module information:<br>    Channels: #test (need ops)<br>    Online as: testbot!<a href="mailto:testbot@Clk-E646DB59.org">testbot@Clk-E646DB59.org</a> (Test Bot)<br>    Server [irc.---------.ca]:+6669 (connected for 00:02)<br>    #test               :   2 members, enforcing "+tn" (greet)</div></blockquote>And finally the error after I edited the script and do a rehash.<blockquote class="uncited"><div>[17:05:51] #aa# rehash<br>Rehashing.<br>[17:05:51] Writing user file...<br>[17:05:51] Writing channel file...<br>[17:05:51] Rehashing ...<br>[17:05:51] Writing channel file...<br>[17:05:51] Listening at telnet port 8000 (all).<br>[17:05:51] Loading dccwhois.tcl...<br>[17:05:51] Loaded dccwhois.tcl<br>[17:05:51] m00nie::weather 2.6 loaded<br>[17:05:51] bseen1.4.2c:  -- Bass's SEEN loaded --<br>[17:05:51] Earthquake Announcer v1.2 loaded.<br>[17:05:51] m00nie::news 1.0 loaded<br>[17:05:51] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ).<br>[17:05:51] use '.help userinfo' for commands.<br>[17:05:51] Writing channel file...<br>[17:05:51] Userfile loaded, unpacking...<br>[17:05:56] Earthquake error: error flushing "sock154d510": connection reset by peer</div></blockquote>Thanks again for trying.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12534">a_aa</a> — Mon Sep 10, 2018 8:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2018-09-10T04:41:19-04:00</updated>

		<published>2018-09-10T04:41:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107040#p107040</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107040#p107040"/>
		<title type="html"><![CDATA[Error flushing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107040#p107040"><![CDATA[
I tried various things to no avail, and then tried this code:<div class="codebox"><p>Code: </p><pre><code>proc tls:socket args {set opts [lrange $args 0 end-2]set host [lindex $args end-1]set port [lindex $args end]::tls::socket -servername $host {*}$opts $host $port}</code></pre></div>taken from <a href="http://wiki.tcl.tk/2630" class="postlink">here</a>.<br><br>Add this to your code and change the:<div class="codebox"><p>Code: </p><pre><code>::http::register https 443 [list ::tls::socket -tls1 1]  ;# added: plat_ #</code></pre></div>or whatever you got there now to:<div class="codebox"><p>Code: </p><pre><code>::http::register https 443 tls:socket</code></pre></div>and it will work just fine.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Sep 10, 2018 4:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[a_aa]]></name></author>
		<updated>2018-09-09T09:48:45-04:00</updated>

		<published>2018-09-09T09:48:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107038#p107038</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107038#p107038"/>
		<title type="html"><![CDATA[Error flushing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107038#p107038"><![CDATA[
<blockquote class="uncited"><div>So you see a blank space like "Earthquake error:" ?</div></blockquote>Edit....<br> I just edited my console to show messages in the partyline, I now get this when typing the trigger. Since the script calls to check every 5 minutes, I am getting the error sent to the partyline at 5 minute intervals, so I know the script is running, just getting the error.<br><br>[07:25:00] Earthquake error: error flushing "sock18d3e50": connection reset by peer<br><br>BTW all my other scripts work, ie weather, news etc. Channel #test is set +earthquake. When script used to run it ran in #satellite but is temporarily disabled.<br><br>Quick edit, here is a status from telnet session.<br><br>Config file: evilbot<br>OS: Linux 4.17.17-x86_64-linode116<br>Process ID: 16134 (parent 1)<br>Tcl library: /usr/share/tcltk/tcl8.6<br>Tcl version: 8.6.5 (header version 8.6.5)<br>Tcl is threaded.<br>TLS support is enabled.<br>TLS library: OpenSSL 1.0.2g  1 Mar 2016<br>IPv6 support is enabled.<br>Socket table: 20/100<br>Loaded module information:<br>    Channels: #satellite (need ops), #pool (need ops), #test<br>    Online as: evilbot!evilbot@Clk------------.org (Evil Bot)<br>    Server [irc.---------.ca]:+6669 (connected for 00:24)<br>    #satellite          :   17 members, enforcing "+tn" (greet)<br>    #pool               :   16 members, enforcing "+tn" (greet)<br>    #test               :   2 members, enforcing "+tn" (greet)<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12534">a_aa</a> — Sun Sep 09, 2018 9:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2018-09-09T04:03:42-04:00</updated>

		<published>2018-09-09T04:03:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107037#p107037</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107037#p107037"/>
		<title type="html"><![CDATA[Error flushing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107037#p107037"><![CDATA[
So you see a blank space like "Earthquake error:" ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Sep 09, 2018 4:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[a_aa]]></name></author>
		<updated>2018-09-08T19:18:36-04:00</updated>

		<published>2018-09-08T19:18:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107036#p107036</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107036#p107036"/>
		<title type="html"><![CDATA[Error flushing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107036#p107036"><![CDATA[
I added the line as follows,<br><br> catch { set t [::http::geturl $::eqnews::ary(page) -timeout 30000] } error <br> putlog "Earthquake error: $error" <br><br>but no reporting back when I am in telnet with the bot? I can't dcc directly from channel but have no problems to telnet in.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12534">a_aa</a> — Sat Sep 08, 2018 7:18 pm</p><hr />
]]></content>
	</entry>
	</feed>
