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

	<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>2021-03-03T12:35:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Carlin0]]></name></author>
		<updated>2021-03-03T12:35:59-04:00</updated>

		<published>2021-03-03T12:35:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109475#p109475</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109475#p109475"/>
		<title type="html"><![CDATA[urltitle grabber]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109475#p109475"><![CDATA[
In my VPS Debian 10 it works very fine<br><br>tested with eggdrop 1.8.4 and 1.9.0-rc3<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12778">Carlin0</a> — Wed Mar 03, 2021 12:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[m4s]]></name></author>
		<updated>2021-03-03T12:22:42-04:00</updated>

		<published>2021-03-03T12:22:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109474#p109474</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109474#p109474"/>
		<title type="html"><![CDATA[urltitle grabber]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109474#p109474"><![CDATA[
<blockquote class="uncited"><div>this works best <br><br><a href="http://tclarchive.org/search.php?str=urlmagic&amp;cb1=t&amp;cb2=a&amp;cb3=d&amp;sub.x=0&amp;sub.y=0" class="postlink">http://tclarchive.org/search.php?str=ur ... =0&amp;sub.y=0</a></div></blockquote>hello,<br><br>not for me.<br>error msg <br>Tcl error [::urlmagic::find_urls]: can't read "settings(content-length)": no such element in array<br><br>After .set errorInfo<div class="codebox"><p>Code: </p><pre><code>Currently: can't read "settings(content-length)": no such element in arrayCurrently:     while executingCurrently: "set content_length $settings(content-length)"Currently:     (procedure "::urlmagic::get_title" line 12)Currently:     invoked from withinCurrently: "${ns}::get_title $url"Currently:     (procedure "::urlmagic::find_urls" line 16)Currently:     invoked from withinCurrently: "::urlmagic::find_urls $_pubm1 $_pubm2 $_pubm3 $_pubm4 $_pubm5"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12672">m4s</a> — Wed Mar 03, 2021 12:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Carlin0]]></name></author>
		<updated>2021-03-03T11:34:14-04:00</updated>

		<published>2021-03-03T11:34:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109472#p109472</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109472#p109472"/>
		<title type="html"><![CDATA[urltitle grabber]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109472#p109472"><![CDATA[
this works best <br><br><a href="http://tclarchive.org/search.php?str=urlmagic&amp;cb1=t&amp;cb2=a&amp;cb3=d&amp;sub.x=0&amp;sub.y=0" class="postlink">http://tclarchive.org/search.php?str=ur ... =0&amp;sub.y=0</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12778">Carlin0</a> — Wed Mar 03, 2021 11:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[m4s]]></name></author>
		<updated>2021-03-02T14:57:26-04:00</updated>

		<published>2021-03-02T14:57:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109457#p109457</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109457#p109457"/>
		<title type="html"><![CDATA[urltitle grabber]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109457#p109457"><![CDATA[
I changed this line:<br><div class="codebox"><p>Code: </p><pre><code>::http::register https 443 ::tls::socket</code></pre></div>to<div class="codebox"><p>Code: </p><pre><code>http::register https 443 [list ::tls::socket -autoservername true]</code></pre></div>and the "<em class="text-italics">can't read "http": no such variable</em>" msg disappeared but I got a result with strange characters in the title: <a href="https://i.imgur.com/e9cOqzI.jpg" class="postlink">https://i.imgur.com/e9cOqzI.jpg</a><br><br>Any idea to avoid this?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12672">m4s</a> — Tue Mar 02, 2021 2:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[m4s]]></name></author>
		<updated>2021-02-28T10:57:19-04:00</updated>

		<published>2021-02-28T10:57:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109446#p109446</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109446#p109446"/>
		<title type="html"><![CDATA[.set errorInfo]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109446#p109446"><![CDATA[
After <strong class="text-strong">.set errorInfo</strong> I got<div class="codebox"><p>Code: </p><pre><code>Currently: can't read "http": no such variableCurrently:     while executingCurrently: "::http::status $http"Currently:     (procedure "urltitle" line 11)Currently:     invoked from withinCurrently: "urltitle $word"Currently:     (procedure "pubm:urltitle" line 7)Currently:     invoked from withinCurrently: "pubm:urltitle $_pubm1 $_pubm2 $_pubm3 $_pubm4 $_pubm5"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12672">m4s</a> — Sun Feb 28, 2021 10:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2021-02-28T10:17:25-04:00</updated>

		<published>2021-02-28T10:17:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109445#p109445</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109445#p109445"/>
		<title type="html"><![CDATA[urltitle grabber]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109445#p109445"><![CDATA[
I can Confirm, it works<br><div class="codebox"><p>Code: </p><pre><code>&lt;ComputerTech&gt; http://forum.egghelp.org/viewtopic.php?p=109443#109443&lt;Tech&gt; ComputerTech: URL Title for http://forum.egghelp.org/viewtopic.php?p=109443#109443 - egghelp.org community :: View topic - urltitle grabber</code></pre></div>However yes for your url <a href="https://www.politico.eu/article/trapped-in-germany-covid-coronavirus-nightmare/" class="postlink">https://www.politico.eu/article/trapped ... nightmare/</a><br><br>i get <div class="codebox"><p>Code: </p><pre><code>&lt;Tech&gt; [14:18:42] Tcl error [pubm:urltitle]: can't read "http": no such variable</code></pre></div>Perhaps due to ssl issue of the site, because<div class="codebox"><p>Code: </p><pre><code>&lt;ComputerTech&gt; https://www.google.co.uk/&lt;Tech&gt; ComputerTech: URL Title for https://www.google.co.uk/ - Google&lt;ComputerTech&gt; https://www.anope.org/&lt;Tech&gt; ComputerTech: URL Title for https://www.anope.org/ - Anope IRC Services</code></pre></div>other https url's work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Sun Feb 28, 2021 10:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[m4s]]></name></author>
		<updated>2021-02-28T10:06:38-04:00</updated>

		<published>2021-02-28T10:06:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109444#p109444</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109444#p109444"/>
		<title type="html"><![CDATA[urltitle grabber]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109444#p109444"><![CDATA[
<blockquote class="uncited"><div>m4s, you sure you have loaded the http.tcl package?<br><br>if not<br><br><a href="https://core.tcl-lang.org/tcllib/dir?ci=e3475de99399b361&amp;name=modules" class="postlink">https://core.tcl-lang.org/tcllib/dir?ci ... me=modules</a></div></blockquote>I've been using m00nie youtube script for a long time which also requires http package. <br>It works.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12672">m4s</a> — Sun Feb 28, 2021 10:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2021-02-28T10:15:15-04:00</updated>

		<published>2021-02-28T09:55:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109443#p109443</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109443#p109443"/>
		<title type="html"><![CDATA[urltitle grabber]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109443#p109443"><![CDATA[
Just tested it again, works <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><br><br>m4s, you sure you have loaded the http.tcl package?<br><br>if not<br><br><a href="https://core.tcl-lang.org/tcllib/dir?ci=e3475de99399b361&amp;name=modules" class="postlink">https://core.tcl-lang.org/tcllib/dir?ci ... me=modules</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Sun Feb 28, 2021 9:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[m4s]]></name></author>
		<updated>2021-02-28T10:03:15-04:00</updated>

		<published>2021-02-28T09:38:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109442#p109442</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109442#p109442"/>
		<title type="html"><![CDATA[Error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109442#p109442"><![CDATA[
Hello,<br><br>I got this error msg in DCC:<br><strong class="text-strong"><br>Tcl error [pubm:urltitle]: can't read "http": no such variable</strong><br><br>The website I used: <br><a href="https://www.politico.eu/article/trapped-in-germany-covid-coronavirus-nightmare/" class="postlink">https://www.politico.eu/article/trapped ... nightmare/</a><br><br>Can you pls check this script again?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12672">m4s</a> — Sun Feb 28, 2021 9:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2021-01-25T15:33:30-04:00</updated>

		<published>2021-01-25T15:33:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109362#p109362</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109362#p109362"/>
		<title type="html"><![CDATA[urltitle grabber]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109362#p109362"><![CDATA[
Tested it CrazyCat, Works Perfect with both http and https  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Mon Jan 25, 2021 3:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-01-25T08:49:32-04:00</updated>

		<published>2021-01-25T08:49:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109359#p109359</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109359#p109359"/>
		<title type="html"><![CDATA[Re: urltitle grabber]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109359#p109359"><![CDATA[
Use the code button next time, please.<br><br>The tcl doesn't use tls, here is a small modification (not tested)<br><div class="codebox"><p>Code: </p><pre><code># Script to grab titles from webpages - Copyright C.Leonhardt (rosc2112 at yahoo com) Aug.11.2007 # http://members.dandy.net/~fbn/urltitle.tcl.txt# Loosely based on the tinyurl script by Jer and other bits and pieces of my own..################################################################################################################# Usage: # 1) Set the configs below# 2) .chanset #channelname +urltitle        ;# enable script# 3) .chanset #channelname +logurltitle     ;# enable logging# Then just input a url in channel and the script will retrieve the title from the corresponding page.# When reporting bugs, PLEASE include the .set errorInfo debug info! # Read here: http://forum.egghelp.org/viewtopic.php?t=10215################################################################################################################# Configs:set urltitle(ignore) "bdkqr|dkqr" ;# User flags script will ignore input fromset urltitle(pubmflags) "-|-" ;# user flags required for channel eggdrop useset urltitle(length) 5 ;# minimum url length to trigger channel eggdrop useset urltitle(delay) 1 ;# minimum seconds to wait before another eggdrop useset urltitle(timeout) 60000 ;# geturl timeout (1/1000ths of a second)################################################################################################################# Script begins:package require http;# You need the http package..package require tlsset urltitle(last) 111 ;# Internal variable, stores time of last eggdrop use, don't change..setudef flag urltitle;# Channel flag to enable script.setudef flag logurltitle;# Channel flag to enable logging of script.set urltitlever "0.01a"bind pubm $urltitle(pubmflags) {*://*} pubm:urltitleproc pubm:urltitle {nick host user chan text} {global urltitleif {([channel get $chan urltitle]) &amp;&amp; ([expr [unixtime] - $urltitle(delay)] &gt; $urltitle(last)) &amp;&amp; \(![matchattr $user $urltitle(ignore)])} {foreach word [split $text] {if {[string length $word] &gt;= $urltitle(length) &amp;&amp; \[regexp {^(f|ht)tp(s|)://} $word] &amp;&amp; \![regexp {://([^/:]*:([^/]*@|\d+(/|$))|.*/\.)} $word]} {set urltitle(last) [unixtime]set urtitle [urltitle $word]if {[string length $urtitle]} {puthelp "PRIVMSG $chan :$nick: URL Title for $word - \002$urtitle\002"}break}}        }if {[channel get $chan logurltitle]} {foreach word [split $text] {if {[string match "*://*" $word]} {putlog "&lt;$nick:$chan&gt; $word -&gt; $urtitle"}}}# change to return 0 if you want the pubm trigger logged additionally..return 1}proc urltitle {url} {if {[info exists url] &amp;&amp; [string length $url]} {if {[string match "https://*" $url]} {::http::register https 443 ::tls::socketset secure 1}catch {set http [::http::geturl $url -timeout $::urltitle(timeout)]} errorif {[string match -nocase "*couldn't open socket*" $error]} {return "Error: couldn't connect..Try again later"}if { [::http::status $http] == "timeout" } {return "Error: connection timed out while trying to contact $url"}set data [split [::http::data $http] \n]::http::cleanup $httpset title ""if {[regexp -nocase {&lt;title&gt;(.*?)&lt;/title&gt;} $data match title]} {return [string map { {href=} "" \" "" } $title]} else {return "No title found."}if {[info exists secure]} {::http::unregister httpsunset secure}}}putlog "Url Title Grabber $urltitlever (rosc) script loaded.."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Jan 25, 2021 8:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Goga]]></name></author>
		<updated>2021-01-25T05:58:23-04:00</updated>

		<published>2021-01-25T05:58:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109358#p109358</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109358#p109358"/>
		<title type="html"><![CDATA[urltitle grabber]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109358#p109358"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># Script to grab titles from webpages - Copyright C.Leonhardt (rosc2112 at yahoo com) Aug.11.2007 # http://members.dandy.net/~fbn/urltitle.tcl.txt# Loosely based on the tinyurl script by Jer and other bits and pieces of my own..################################################################################################################# Usage: # 1) Set the configs below# 2) .chanset #channelname +urltitle        ;# enable script# 3) .chanset #channelname +logurltitle     ;# enable logging# Then just input a url in channel and the script will retrieve the title from the corresponding page.# When reporting bugs, PLEASE include the .set errorInfo debug info! # Read here: http://forum.egghelp.org/viewtopic.php?t=10215################################################################################################################# Configs:set urltitle(ignore) "bdkqr|dkqr" ;# User flags script will ignore input fromset urltitle(pubmflags) "-|-" ;# user flags required for channel eggdrop useset urltitle(length) 5 ;# minimum url length to trigger channel eggdrop useset urltitle(delay) 1 ;# minimum seconds to wait before another eggdrop useset urltitle(timeout) 60000 ;# geturl timeout (1/1000ths of a second)################################################################################################################# Script begins:package require http;# You need the http package..set urltitle(last) 111 ;# Internal variable, stores time of last eggdrop use, don't change..setudef flag urltitle;# Channel flag to enable script.setudef flag logurltitle;# Channel flag to enable logging of script.set urltitlever "0.01a"bind pubm $urltitle(pubmflags) {*://*} pubm:urltitleproc pubm:urltitle {nick host user chan text} {global urltitleif {([channel get $chan urltitle]) &amp;&amp; ([expr [unixtime] - $urltitle(delay)] &gt; $urltitle(last)) &amp;&amp; \(![matchattr $user $urltitle(ignore)])} {foreach word [split $text] {if {[string length $word] &gt;= $urltitle(length) &amp;&amp; \[regexp {^(f|ht)tp(s|)://} $word] &amp;&amp; \![regexp {://([^/:]*:([^/]*@|\d+(/|$))|.*/\.)} $word]} {set urltitle(last) [unixtime]set urtitle [urltitle $word]if {[string length $urtitle]} {puthelp "PRIVMSG $chan :$nick: URL Title for $word - \002$urtitle\002"}break}}        }if {[channel get $chan logurltitle]} {foreach word [split $text] {if {[string match "*://*" $word]} {putlog "&lt;$nick:$chan&gt; $word -&gt; $urtitle"}}}# change to return 0 if you want the pubm trigger logged additionally..return 1}proc urltitle {url} {if {[info exists url] &amp;&amp; [string length $url]} {catch {set http [::http::geturl $url -timeout $::urltitle(timeout)]} errorif {[string match -nocase "*couldn't open socket*" $error]} {return "Error: couldn't connect..Try again later"}if { [::http::status $http] == "timeout" } {return "Error: connection timed out while trying to contact $url"}set data [split [::http::data $http] \n]::http::cleanup $httpset title ""if {[regexp -nocase {&lt;title&gt;(.*?)&lt;/title&gt;} $data match title]} {return [string map { {href=} "" \" "" } $title]} else {return "No title found."}}}putlog "Url Title Grabber $urltitlever (rosc) script loaded.."</code></pre></div>Using up above tcl for urltitle grabber, But It works only when posts with HTTP , If Post come with HTTPS it doesn't Reply at all.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12883">Goga</a> — Mon Jan 25, 2021 5:58 am</p><hr />
]]></content>
	</entry>
	</feed>
