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

	<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>2004-02-04T20:52:30-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-02-04T20:52:30-04:00</updated>

		<published>2004-02-04T20:52:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33220#p33220</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33220#p33220"/>
		<title type="html"><![CDATA[Quick Eggdrop interface to tinyurl...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33220#p33220"><![CDATA[
This is true--it's been around a while, but if it goes away then obviously this script will be useless <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad">  And yes, most people use an IRC client with URL recognition, but I have several friends who are on my channel and use either BitchX or EPIC (or something along those lines) and get mighty upset when someone posts a really long link <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">  I don't think PuTTY itself does URL recognition unfortunately, although maybe there are variations on xterm/rxvt that do...<br><br>I'll submit it to that site--actually made a few changes to the code to handle timeouts a bit more gracefully if the tinyurl site is inaccessible.<p>Statistics: Posted by Guest — Wed Feb 04, 2004 8:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2004-02-04T14:06:56-04:00</updated>

		<published>2004-02-04T14:06:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33214#p33214</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33214#p33214"/>
		<title type="html"><![CDATA[Quick Eggdrop interface to tinyurl...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33214#p33214"><![CDATA[
the problem is : how long does such a tinyurl link last ? at least a few months i hope....<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Wed Feb 04, 2004 2:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Yourname]]></name></author>
		<updated>2004-02-04T13:54:52-04:00</updated>

		<published>2004-02-04T13:54:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33213#p33213</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33213#p33213"/>
		<title type="html"><![CDATA[Quick Eggdrop interface to tinyurl...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33213#p33213"><![CDATA[
Thanks a lot, variant. But, you can submit the script to slennox at egghelp dot org, for it to be listed in the famous egghelp tcl archive.<br><br>And btw, no offence, but I think almost all of the most famous IRC clients people use, each one of them has URL recognition? Correct me if I'm wrong.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13">Yourname</a> — Wed Feb 04, 2004 1:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-02-03T12:54:13-04:00</updated>

		<published>2004-02-03T12:54:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33188#p33188</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33188#p33188"/>
		<title type="html"><![CDATA[Quick Eggdrop interface to tinyurl...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33188#p33188"><![CDATA[
For those of you not familiar with <a href="http://tinyurl.com/" class="postlink">TinyURL</a>, it's a great way to generate a nice, clean, short URL from a long gangly one.  Much more friendly for copying from IRC if you're not using an IRC client with URL recognition.<br><br>I took a stab at a TCL script for Eggdrop that takes a URL parameter, queries the TinyURL server, then spits back out the converted URL.<br><div class="codebox"><p>Code: </p><pre><code>#### tinyurl.tcl## An Eggdrop interface to http://tinyurl.com/#### Ray Van Dolson (rayvd@bludgeon.org)## v1.0##package require httpbind pub - !tinyurl tinyurlproc tinyurl {nick host handle chan args} {  if {[lindex $args 0] != ""} {    set user_url [lindex $args 0]    set url "http://tinyurl.com/create.php"    set postdata [http::formatQuery url $user_url submit submit]    set data [http::geturl $url -query $postdata]    set data2 [http::data $data]    http::cleanup $data    foreach line [split $data2 \n] {      if {[regexp -nocase {&lt;blockquote&gt;(http://tinyurl.com/.*)&lt;\/blockquote&gt;} $line all_matches myurl]} {        putserv "PRIVMSG $chan :$myurl"      }    }  }}</code></pre></div>I only program in TCL maybe once a year, so don't be too hard on me.  Feel free to use, improve, whatever...<p>Statistics: Posted by Guest — Tue Feb 03, 2004 12:54 pm</p><hr />
]]></content>
	</entry>
	</feed>
