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

	<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>2007-07-05T10:31:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-07-05T10:31:41-04:00</updated>

		<published>2007-07-05T10:31:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74190#p74190</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74190#p74190"/>
		<title type="html"><![CDATA[tinyurl.tcl 2.32 by jer problem with chars]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74190#p74190"><![CDATA[
error info would be helpful (read the faq about how to get useful info from .set errorInfo)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Thu Jul 05, 2007 10:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[incith]]></name></author>
		<updated>2007-07-04T21:29:25-04:00</updated>

		<published>2007-07-04T21:29:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74181#p74181</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74181#p74181"/>
		<title type="html"><![CDATA[tinyurl.tcl 2.32 by jer problem with chars]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74181#p74181"><![CDATA[
I suggest <a href="http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&amp;id=1209" class="postlink">incith:xrl</a> (^_^) for now.  My script will accept special characters.<br><br>Now, I realise you may not want to use XRL, but that's alright, because I'm planning on release a super-shortening script soon (which will include tinyurl). <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">  But anyway, xrl.us is shorter than tinyurl.com anyway.<br><br>Regards,<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6130">incith</a> — Wed Jul 04, 2007 9:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[testebr]]></name></author>
		<updated>2007-07-04T17:56:21-04:00</updated>

		<published>2007-07-04T17:56:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74176#p74176</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74176#p74176"/>
		<title type="html"><![CDATA[tinyurl.tcl 2.32 by jer problem with chars]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74176#p74176"><![CDATA[
Hi,<br><br>This tcl work fine, but some url dont work.<br><br>Example:<br><br><a href="http://www.testeurlwebsitefree.com/" class="postlink">http://www.testeurlwebsitefree.com/</a> &lt;&lt;&lt; work fine<br><br><a href="http://www.testeurlwebsitefree.com/area/page.php?id=8986" class="postlink">http://www.testeurlwebsitefree.com/area ... hp?id=8986</a>  &lt;&lt;&lt; dont work<br><br>How to fix it?<br><br>tcl download: <a href="http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&amp;id=1259" class="postlink">http://www.egghelp.org/cgi-bin/tcl_arch ... ad&amp;id=1259</a><br><br>Tcl source:<br><div class="codebox"><p>Code: </p><pre><code>#!/bin/sh# \exec tclsh "$0" "$@"package require http 2.2;###############################################################################set tinyurl(version) "tinyurl.tcl v2.32 by jer@usa.com" ;# updated: 2007.02.14;###############################################################################;# * command-line:;#   * $ ./tinyurl.tcl 'http://www.icaughtyouadeliciousbass.com/';# * console:;#   * $ ./tinyurl.tcl;#   * http://www.dontbejealousthativebeenchattingonlinewithbabesallday.com/;# * eggdrop:;#   * .chanset #channel +tinyurl +untinyurl +logallurl;#   * /msg #channel http://www.icaughtyouadeliciousbass.com/;#   * /msg bot http://www.icaughtyouadeliciousbass.com/;###############################################################################set tinyurl(antiflags) "bdkqr|dkqr" ;# user flags to ignore for eggdrop useset tinyurl(msgmflags) "o|o" ;# user flags required for message eggdrop useset tinyurl(pubmflags) "-|-" ;# user flags required for channel eggdrop useset tinyurl(length) 40 ;# minimum url length to trigger channel eggdrop useset tinyurl(delay) 30 ;# minimum seconds to wait before another eggdrop useset tinyurl(last) 408 ;# internal variable, stores time of last eggdrop use;###############################################################################proc tinyurl {url} { if {[info exists url] &amp;&amp; [string length $url]} {  if {[regexp {http://tinyurl\.com/\w+} $url]} {   set http [::http::geturl $url -timeout 9000]   upvar #0 $http state ; array set meta $state(meta)   ::http::cleanup $http ; return $meta(Location)  } else {   set http [::http::geturl "http://tinyurl.com/create.php" \     -query [::http::formatQuery "url" $url] -timeout 9000]   set data [split [::http::data $http] \n] ; ::http::cleanup $http   for {set index [llength $data]} {$index &gt;= 0} {incr index -1} {    if {[regexp {href="http://tinyurl\.com/\w+"} [lindex $data $index] url]} {     return [string map { {href=} "" \" "" } $url] }}}} return ""};###############################################################################;# tclsh command-line/console procedure;###############################################################################if {[info exists argc]} { if {$argc} {  foreach arg [lrange $argv 0 end] {puts [tinyurl $arg]} } else {  puts "$tinyurl(version)"  puts "usage: $argv0 http://bullfrog.webhop.net/"  puts "enter url(s), one per line, press ctrl+c to cancel:"  while {[gets stdin line]} {puts [tinyurl [string trim $line]]} } exit};###############################################################################;# eggdrop channel message procedure;###############################################################################proc pubm:tinyurl {nick host user chan text} { global tinyurl if {([channel get $chan tinyurl] || [channel get $chan untinyurl]) &amp;&amp; \     [expr [unixtime] - $tinyurl(delay)] &gt; $tinyurl(last) &amp;&amp; \     ![matchattr $user $tinyurl(antiflags)]} {  foreach word [split $text] {   if {([channel get $chan tinyurl] &amp;&amp; \        [string length $word] &gt;= $tinyurl(length) &amp;&amp; \        [regexp {^(f|ht)tp(s|)://} $word] &amp;&amp; \        ![regexp {://([^/:]*:([^/]*@|\d+(/|$))|.*/\.)} $word]) || \       ([channel get $chan untinyurl] &amp;&amp; \        [regexp {http://tinyurl.com/\w+} $word])} {    set tinyurl(last) [unixtime]    set newurl [tinyurl $word]    if {[string length $newurl]} {     puthelp "PRIVMSG $chan :&lt;$nick&gt; $newurl"    }    putlog "&lt;$nick:$chan&gt; $word &lt;-&gt; $newurl"    break }}} if {[channel get $chan logallurl]} {  foreach word [split $text] {   if {[string match "*://*" $word]} {    putlog "&lt;$nick:$chan&gt; $word" }}} return 0}bind pubm $tinyurl(pubmflags) {*://*} pubm:tinyurl;###############################################################################;# eggdrop private message procedure;###############################################################################proc msgm:tinyurl {nick host user text} { global tinyurl if {![matchattr $user $tinyurl(antiflags)] &amp;&amp; \     [expr [unixtime] - $tinyurl(delay)] &gt; $tinyurl(last) &amp;&amp; \     [string match "*://*" [lindex [split $text] 0]] &amp;&amp; \     [llength [split $text]] == 1} {  set tinyurl(last) [unixtime]  set newurl [tinyurl $text]  if {[string length $newurl]} {   puthelp "PRIVMSG $nick :\1ACTION $newurl\1"   putlog "&lt;$nick&gt; $text &lt;-&gt; $newurl" }} return 0}bind msgm $tinyurl(msgmflags) {*://*} msgm:tinyurl;###############################################################################;# eggdrop chanset flags;###############################################################################setudef flag tinyurlsetudef flag untinyurlsetudef flag logallurl;###############################################################################putlog "loaded: $tinyurl(version)" ;# eggdrop log message;###############################################################################</code></pre></div>This other <a href="http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&amp;id=1072" class="postlink">TCL</a> have same problem.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7055">testebr</a> — Wed Jul 04, 2007 5:56 pm</p><hr />
]]></content>
	</entry>
	</feed>
