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

	<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>2012-05-29T13:38:54-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Regex]]></name></author>
		<updated>2012-05-28T11:07:21-04:00</updated>

		<published>2012-05-28T11:07:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99477#p99477</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99477#p99477"/>
		<title type="html"><![CDATA[[SOLVED] bit.ly or another one]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99477#p99477"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>#######################################################    dd0.in URL Shortener by Danneh/GrimReaper    #########################################################                 Initial Setup                   #######################################################set dd0char "."#######################################################                    End Setup                    #######################################################proc dd0url {nick host hand chan search} {  if {[lsearch -exact [channel info $chan] +dd0url] != -1} {    set dd0logo "\00312DD0 URL:\003"    set dd0site "dd0.in"    if {$search == ""} {      putserv "PRIVMSG $chan :$dd0logo, Please enter a URL to shorten.."    } else {      set dd0srcurl "/api.php?action=shorturl&amp;url=${search}&amp;output=xml"      if {[catch {set dd0srcsock [socket -async $dd0site 80]} sockerr]} {        return 0      } else {        puts $dd0srcsock "GET $dd0srcurl HTTP/1.0"        puts $dd0srcsock "Host: $dd0site"        puts $dd0srcsock "User-Agent: Opera 9.6"        puts $dd0srcsock ""        flush $dd0srcsock        while {![eof $dd0srcsock]} {          set dd0status " [gets $dd0srcsock] "          if {[regexp -all {&lt;shorturl&gt;(.*?)&lt;/shorturl&gt;} $dd0status match dd0link]} {            putserv "PRIVMSG $chan :$dd0logo ${dd0link}"            close $dd0srcsock            return 0          }        }        close $dd0srcsock        return 0      }    }  }}bind pub - ${dd0char}dd0 dd0urlsetudef flag dd0urlputlog "dd0.in URL Shortener by Danneh/GrimReaper"</code></pre></div>Use it like that;<br><br>.chanset #yourchannel +dd0url<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11617">Regex</a> — Mon May 28, 2012 11:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2012-05-29T13:38:54-04:00</updated>

		<published>2012-05-27T20:04:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99475#p99475</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99475#p99475"/>
		<title type="html"><![CDATA[[SOLVED] bit.ly or another one]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99475#p99475"><![CDATA[
Hey!<br><br>Is it possible to get tcl script todo:<br><br>Is it possible when my bot see a url like <a href="http://some.url.here.com" class="postlink">http://some.url.here.com</a> then the tc lscript should do : store the new url like a bit.ly url instead...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Sun May 27, 2012 8:04 pm</p><hr />
]]></content>
	</entry>
	</feed>
