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

	<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>2011-10-18T11:02:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[SVD]]></name></author>
		<updated>2011-10-18T11:02:45-04:00</updated>

		<published>2011-10-18T11:02:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97945#p97945</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97945#p97945"/>
		<title type="html"><![CDATA[Release: SA_urltitle.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97945#p97945"><![CDATA[
I often see the error "Tcl error [pub_url]: can't read "tok": no such variable" when URLs are posted from certain websites. Is there an update or fix to this script? It's a great script otherwise.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7496">SVD</a> — Tue Oct 18, 2011 11:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kenh83]]></name></author>
		<updated>2011-05-28T01:22:59-04:00</updated>

		<published>2011-05-28T01:22:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96945#p96945</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96945#p96945"/>
		<title type="html"><![CDATA[Release: SA_urltitle.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96945#p96945"><![CDATA[
This script is no longer on GitHub.. lame. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11350">kenh83</a> — Sat May 28, 2011 1:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cubemon]]></name></author>
		<updated>2011-05-20T12:50:27-04:00</updated>

		<published>2011-05-20T12:50:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96920#p96920</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96920#p96920"/>
		<title type="html"><![CDATA[Release: SA_urltitle.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96920#p96920"><![CDATA[
<blockquote class="uncited"><div><strong class="text-strong">MOAR</strong> scripts are a good thing <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>This might help you script as for completeness and compatibility (patched utf-8 vs not). This procedure is what I presently use within my twitter script. It is a more evolved version of the same procedure within incith-google.<br><div class="codebox"><p>Code: </p><pre><code>[string map [b]-nocase[/b] $escapes $text]</code></pre></div>Feel free to steal (borrow) this.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>I admit nicking your script and using successfully with my bot! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>However, if you want Ä to correspond to "Ä" and ä to "ä" (and make other capital and lowercase umlauts work), you need to remove the -nocase option from the string map clause.<br><br>Thanks for a great conversion script!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11673">cubemon</a> — Fri May 20, 2011 12:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[madpinger]]></name></author>
		<updated>2011-01-14T06:44:54-04:00</updated>

		<published>2011-01-14T06:44:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95662#p95662</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95662#p95662"/>
		<title type="html"><![CDATA[Release: SA_urltitle.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95662#p95662"><![CDATA[
<blockquote class="uncited"><div>Great script! However, it doesn't pick up when someone omits the http://. For example, if I type in <a href="http://www.youtube.com" class="postlink">www.youtube.com</a>, I would like it to catch that and display the title. Any chance you could add that feature? Thanks in advance.</div></blockquote>Hmm, sure.  I'd tell you what to change here, but you have to prefix it with http:// before using the uri, or it has issues.  I'll add that in with an other fix/feature a user requested on github in a few days ^.^<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11373">madpinger</a> — Fri Jan 14, 2011 6:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SVD]]></name></author>
		<updated>2011-01-11T17:28:31-04:00</updated>

		<published>2011-01-11T17:28:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95628#p95628</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95628#p95628"/>
		<title type="html"><![CDATA[Release: SA_urltitle.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95628#p95628"><![CDATA[
Great script! However, it doesn't pick up when someone omits the http://. For example, if I type in <a href="http://www.youtube.com" class="postlink">www.youtube.com</a>, I would like it to catch that and display the title. Any chance you could add that feature? Thanks in advance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7496">SVD</a> — Tue Jan 11, 2011 5:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[madpinger]]></name></author>
		<updated>2010-11-01T12:17:51-04:00</updated>

		<published>2010-11-01T12:17:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94951#p94951</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94951#p94951"/>
		<title type="html"><![CDATA[Release: SA_urltitle.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94951#p94951"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>[20:56:51] &lt;@spithash&gt; http://www.youtube.com/user/spithash[20:56:55] &lt;@nagger&gt; [Url title:] YouTube        - spithash's Channel</code></pre></div>can anyone tell me why this white space appears there? I have the same problem with another title grab tcl aswell</div></blockquote>basically, it's cause the title is on more than one line in the HTML that is parsed.<br><div class="codebox"><p>Code: </p><pre><code>    &lt;title&gt;    YouTube        - spithash's Channel  &lt;/title&gt;</code></pre></div>I merge multiple line titles to deal with this in the regexp.  If it's a real bother, it would be simple enough to add white space stripping to it.<br><br>Tho,  that's the reason in a nut shell.<br><br>*EDIT*<br>Ok, fixed that for you.  This is the change to make<div class="codebox"><p>Code: </p><pre><code>[12:31] &lt;madpinger&gt; http://www.youtube.com/user/spithash [12:31] &lt;Belkar&gt; [Url title:] YouTube - spithash's Channel</code></pre></div>find:<div class="codebox"><p>Code: </p><pre><code>                        foreach line [split $data \n] {                            if {[regexp -nocase {&lt;meta.*charset.(.*?)".*&gt;} $line match charset]} {                                set charenc $charset                            }                            append newdata $line                        }</code></pre></div>Change append newdata $line to append newdata [string trim $line]<div class="codebox"><p>Code: </p><pre><code>                        foreach line [split $data \n] {                            if {[regexp -nocase {&lt;meta.*charset.(.*?)".*&gt;} $line match charset]} {                                set charenc $charset                            }                            append newdata " [string trim $line]"                        }</code></pre></div>This keeps at least one space between the two lines, so words don't get joined. Updated github's copy with a token cleanup fix.  Forgive me for some of the silly stuff I've messed up,  I do this half asleep or drunk most times. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11373">madpinger</a> — Mon Nov 01, 2010 12:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spithash]]></name></author>
		<updated>2010-10-31T15:05:09-04:00</updated>

		<published>2010-10-31T15:05:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94940#p94940</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94940#p94940"/>
		<title type="html"><![CDATA[Release: SA_urltitle.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94940#p94940"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>[20:56:51] &lt;@spithash&gt; http://www.youtube.com/user/spithash[20:56:55] &lt;@nagger&gt; [Url title:] YouTube        - spithash's Channel</code></pre></div>can anyone tell me why this white space appears there? I have the same problem with another title grab tcl aswell<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9145">spithash</a> — Sun Oct 31, 2010 3:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[madpinger]]></name></author>
		<updated>2010-10-30T12:36:38-04:00</updated>

		<published>2010-10-30T12:36:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94925#p94925</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94925#p94925"/>
		<title type="html"><![CDATA[Release: SA_urltitle.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94925#p94925"><![CDATA[
<blockquote class="uncited"><div><strong class="text-strong">MOAR</strong> scripts are a good thing <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>This might help you script as for completeness and compatibility (patched utf-8 vs not). This procedure is what I presently use within my twitter script. It is a more evolved version of the same procedure within incith-google. <br>....<br>Feel free to steal (borrow) this.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>Thanks,  I'll review it's changes for inclusion.  Tho,  I think that I have the encoding covered with the converfrom which changes the encoding to the system default ?<br><br>I'm developing on 1.8 cvs patched to be utf-8, tho I did a quick test on 1.6.20 with out any mod.<br><br>*EDIT*<br>Oh, IC what you did there. <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=11373">madpinger</a> — Sat Oct 30, 2010 12:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2011-05-28T20:44:17-04:00</updated>

		<published>2010-10-30T12:22:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94923#p94923</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94923#p94923"/>
		<title type="html"><![CDATA[Release: SA_urltitle.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94923#p94923"><![CDATA[
<strong class="text-strong">MOAR</strong> scripts are a good thing <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>This might help you script as for completeness and compatibility (patched utf-8 vs not). This procedure is what I presently use within my twitter script. It is a more evolved version of the same procedure within incith-google. <div class="codebox"><p>Code: </p><pre><code>proc decode_entities {text {char "utf-8"} } {# code below is neccessary to prevent numerous html markups# from appearing in the output (ie, ", ᘧ, etc)# stolen (borrowed is a better term) from tcllib's htmlparse ;)# works unpatched utf-8 or not, unlike htmlparse::mapEscapes# which will only work properly patched....set escapes {  \xa0 ¡ \xa1 ¢ \xa2 £ \xa3 ¤ \xa4¥ \xa5 ¦ \xa6 § \xa7 ¨ \xa8 © \xa9ª \xaa « \xab ¬ \xac ­ \xad ® \xae¯ \xaf ° \xb0 ± \xb1 ² \xb2 ³ \xb3´ \xb4 µ \xb5 ¶ \xb6 · \xb7 ¸ \xb8¹ \xb9 º \xba » \xbb ¼ \xbc ½ \xbd¾ \xbe ¿ \xbf À \xc0 Á \xc1 Â \xc2Ã \xc3 Ä \xc4 Å \xc5 Æ \xc6 Ç \xc7È \xc8 É \xc9 Ê \xca Ë \xcb Ì \xccÍ \xcd Î \xce Ï \xcf Ð \xd0 Ñ \xd1Ò \xd2 Ó \xd3 Ô \xd4 Õ \xd5 Ö \xd6× \xd7 Ø \xd8 Ù \xd9 Ú \xda Û \xdbÜ \xdc Ý \xdd Þ \xde ß \xdf à \xe0á \xe1 â \xe2 ã \xe3 ä \xe4 å \xe5æ \xe6 ç \xe7 è \xe8 é \xe9 ê \xeaë \xeb ì \xec í \xed î \xee ï \xefð \xf0 ñ \xf1 ò \xf2 ó \xf3 ô \xf4õ \xf5 ö \xf6 ÷ \xf7 ø \xf8 ù \xf9ú \xfa û \xfb ü \xfc ý \xfd þ \xfeÿ \xff ƒ \u192 Α \u391 Β \u392 Γ \u393 Δ \u394Ε \u395 Ζ \u396 Η \u397 Θ \u398 Ι \u399Κ \u39A Λ \u39B Μ \u39C Ν \u39D Ξ \u39EΟ \u39F Π \u3A0 Ρ \u3A1 Σ \u3A3 Τ \u3A4Υ \u3A5 Φ \u3A6 Χ \u3A7 Ψ \u3A8 Ω \u3A9α \u3B1 β \u3B2 γ \u3B3 δ \u3B4 ε \u3B5ζ \u3B6 η \u3B7 θ \u3B8 ι \u3B9 κ \u3BAλ \u3BB μ \u3BC ν \u3BD ξ \u3BE ο \u3BFπ \u3C0 ρ \u3C1 ς \u3C2 σ \u3C3 τ \u3C4υ \u3C5 φ \u3C6 χ \u3C7 ψ \u3C8 ω \u3C9ϑ \u3D1 ϒ \u3D2 ϖ \u3D6 • \u2022… \u2026 ′ \u2032 ″ \u2033 ‾ \u203E⁄ \u2044 ℘ \u2118 ℑ \u2111 ℜ \u211C™ \u2122 ℵ \u2135 ← \u2190 ↑ \u2191→ \u2192 ↓ \u2193 ↔ \u2194 ↵ \u21B5⇐ \u21D0 ⇑ \u21D1 ⇒ \u21D2 ⇓ \u21D3 ⇔ \u21D4∀ \u2200 ∂ \u2202 ∃ \u2203 ∅ \u2205∇ \u2207 ∈ \u2208 ∉ \u2209 ∋ \u220B ∏ \u220F∑ \u2211 − \u2212 ∗ \u2217 √ \u221A∝ \u221D ∞ \u221E ∠ \u2220 ∧ \u2227 ∨ \u2228∩ \u2229 ∪ \u222A ∫ \u222B ∴ \u2234 ∼ \u223C≅ \u2245 ≈ \u2248 ≠ \u2260 ≡ \u2261 ≤ \u2264≥ \u2265 ⊂ \u2282 ⊃ \u2283 ⊄ \u2284 ⊆ \u2286⊇ \u2287 ⊕ \u2295 ⊗ \u2297 ⊥ \u22A5⋅ \u22C5 ⌈ \u2308 ⌉ \u2309 ⌊ \u230A⌋ \u230B 〈 \u2329 〉 \u232A ◊ \u25CA♠ \u2660 ♣ \u2663 ♥ \u2665 ♦ \u2666" \x22 &amp; \x26 &lt; \x3C &gt; \x3E O&amp;Elig; \u152 œ \u153Š \u160 š \u161 Ÿ \u178 ˆ \u2C6˜ \u2DC   \u2002   \u2003   \u2009‌ \u200C ‍ \u200D ‎ \u200E ‏ \u200F – \u2013— \u2014 ‘ \u2018 ’ \u2019 ‚ \u201A“ \u201C ” \u201D „ \u201E † \u2020‡ \u2021 ‰ \u2030 ‹ \u2039 › \u203A€ \u20AC &amp;apos; \u0027 ‎ "" ‏ ""};if {![string equal $char [encoding system]]} { set text [encoding convertfrom $char $text] }set text [string map [list "\]" "\\\]" "\[" "\\\[" "\$" "\\\$" "\"" "\\\"" "\\" "\\\\"] [string map $escapes $text]]regsub -all -- {&amp;#([[:digit:]]{1,5});} $text {[format %c [string trimleft "\1" "0"]]} textregsub -all -- {&amp;#x([[:xdigit:]]{1,4});} $text {[format %c [scan "\1" %x]]} textcatch { set text "[subst "$text"]" }if {![string equal $char [encoding system]]} { set text [encoding convertto $char $text] }return "$text"}</code></pre></div>Feel free to steal (borrow) this.. <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=8138">speechles</a> — Sat Oct 30, 2010 12:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[madpinger]]></name></author>
		<updated>2010-11-01T13:58:03-04:00</updated>

		<published>2010-10-30T12:01:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94921#p94921</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94921#p94921"/>
		<title type="html"><![CDATA[Release: SA_urltitle.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94921#p94921"><![CDATA[
The intended purpose of this eggdrop script is to relay the title information<br>of a url sent to a irc channel by irc users while attempting to identify the<br>correct character encoding to preserve the information and replace<br>HTML Entities with their desired unicode counterparts.<br><br><br><a href="http://github.com/madpinger/Eggdrop-URL-title-script" class="postlink">http://github.com/madpinger/Eggdrop-URL-title-script</a><br><br>Bash me, use it, abuse it, what ever works. ^.^<br><br>Just felt like doing it.<br><br><br><em class="text-italics">First url is utf-8, second url is euc-jp.</em><br>example of iso8859-1 compiled bot:<br><img src="http://madpinger.com/images/misc/urltitle_iso8859-1.png" class="postimage" alt="Image"><br><br>example of utf-8 compiled bot:<br><img src="http://madpinger.com/images/misc/urltitle_utf-8.png" class="postimage" alt="Image"><br><br>As you can see, it handles different encoding tho, with limits depending on the system's and the bots compiled encoding.<br><br>Updates:<br>Added Speechles's new proc with some notes, as you will need to make changed in order for it to work depending on your system and how your bot is compiled.   Eventually, I'll get around to it or more simply put figure out how to account for all the different configurations.<br><br>Fixed white space issues as pointed out by spithash.  Just never occurred to me as an issue, lol.<br>Changed how I use http clean up, so it should not loose any tokens.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11373">madpinger</a> — Sat Oct 30, 2010 12:01 pm</p><hr />
]]></content>
	</entry>
	</feed>
