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

	<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>2010-01-29T16:23:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2010-01-29T16:15:34-04:00</updated>

		<published>2010-01-29T16:15:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91894#p91894</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91894#p91894"/>
		<title type="html"><![CDATA[capture all websites posted in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91894#p91894"><![CDATA[
Hi.<br><br>Don't work with: <strong class="text-strong">www</strong>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Fri Jan 29, 2010 4:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tueb]]></name></author>
		<updated>2010-01-29T16:23:11-04:00</updated>

		<published>2010-01-29T16:07:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91893#p91893</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91893#p91893"/>
		<title type="html"><![CDATA[capture all websites posted in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91893#p91893"><![CDATA[
<blockquote class="uncited"><div>bind pubm - * url_pubm<br>bind pub -|- !web url_pub<br><br>set urllogfilename "urllog.data"<br><br>proc url_pubm {nick host handle channel text} {<br>global urllogfilename<br><br>  foreach word [split $text] {<br>    if {[string length $word] &gt;= 5 &amp;&amp; ([regexp {^(f|ht)tp(s|)://} $word] || [regexp "<a href="www" class="postlink">www</a>." $word]) &amp;&amp; ![regexp {://([^/:]*:([^/]*@|\d+(/|$))|.*/\.)} $word]} {<br><br>      set day [clock format [clock sec] -format %D]<br>      regsub -all {/} $day "" day<br><br>    if {[url_existstitle "$word"] eq "1"} {<br>        putlog "$word already exists in $urllogfilename"<br>        return 0<br>    } else {<br>      set file [open $urllogfilename a]<br>      puts $file "$day - $word - $nick - $host"<br>      close $file<br>    }<br><br>    }<br>  }<br>}<br><br>proc url_pub {nick host handle channel text} {<br>global urllogfilename<br><br>  if {[file exists $urllogfilename] &amp;&amp; [file readable $urllogfilename]} {<br><br>    set fp [open $urllogfilename r]<br>    set data [read $fp]<br>    close $fp<br><br>    foreach line [split $data \n] {<br>      if {$text == ""} {<br>      set text [clock format [clock sec] -format %D]<br>      regsub -all {/} $text "" text<br>    }<br><br>    if {[lindex [split $line] 0] == $text} {<br>        putserv "PRIVMSG $nick :$line"<br>    }<br>    }<br>  }<br>}<br><br>proc url_existstitle {query} {<br>global urllogfilename<br><br>    set file [open $urllogfilename r]<br>    set data [read $file]<br>    close $file<br>        foreach line [split $data \n] {<br>        if {![string match -nocase "*$query*" "*$line*"]} {<br>            continue<br>        }<br>        if {[string match -nocase "*$query*" "*$line*"]} {<br>            catch {unset data}<br>            return 1<br>        }<br>    }<br>    catch {unset data}<br>    return 0<br>    }</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9349">tueb</a> — Fri Jan 29, 2010 4:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2010-01-29T10:19:33-04:00</updated>

		<published>2010-01-29T10:19:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91891#p91891</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91891#p91891"/>
		<title type="html"><![CDATA[capture all websites posted in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91891#p91891"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>&lt;Chasse&gt; [14:18] Tcl error [url_pubm]: expected boolean value but got "[regexp {^(f|ht)tp(s|)://} $word] || [regexp {^www"&lt;\Nor7on&gt; .set errorInfo&lt;Chasse&gt; Currently: expected boolean value but got "[regexp {^(f|ht)tp(s|)://} $word] || [regexp {^www"&lt;Chasse&gt; Currently:     while executing&lt;Chasse&gt; Currently: "if {[string length $word] &gt;= 5 &amp;&amp; {[regexp {^(f|ht)tp(s|)://} $word] || [regexp {^www//} $word]}&amp;&amp; ![regexp {://([^/:]*:([^/]*@|\d+(/|$))|.*/\.)} $wor..."&lt;Chasse&gt; Currently:     (procedure "url_pubm" line 5)&lt;Chasse&gt; Currently:     invoked from within&lt;Chasse&gt; Currently: "url_pubm $_pubm1 $_pubm2 $_pubm3 $_pubm4 $_pubm5"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Fri Jan 29, 2010 10:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tueb]]></name></author>
		<updated>2010-01-28T18:56:10-04:00</updated>

		<published>2010-01-28T18:56:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91884#p91884</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91884#p91884"/>
		<title type="html"><![CDATA[capture all websites posted in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91884#p91884"><![CDATA[
right, thx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9349">tueb</a> — Thu Jan 28, 2010 6:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[username]]></name></author>
		<updated>2010-01-28T16:05:24-04:00</updated>

		<published>2010-01-28T16:05:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91882#p91882</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91882#p91882"/>
		<title type="html"><![CDATA[capture all websites posted in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91882#p91882"><![CDATA[
You need to check if url already exists in file.<div class="codebox"><p>Code: </p><pre><code>bind pubm - * url_pubmbind pub -|- !web url_pubset urllogfilename "urllog.data"proc url_pubm {nick host handle channel text} {global urllogfilename  foreach word [split $text] {    if {[string length $word] &gt;= 5 &amp;&amp; {[regexp {^(f|ht)tp(s|)://} $word] || [regexp {^www//} $word]}&amp;&amp; ![regexp {://([^/:]*:([^/]*@|\d+(/|$))|.*/\.)} $word]} {      set day [clock format [clock sec] -format %D]      regsub -all {/} $day "" day    if {[url_existstitle "$word"] eq "1"} {        putlog "$word already exists in $urllogfilename"        return 0    } else {      set file [open $urllogfilename a]      puts $file "$day - $word - $nick - $host"      close $file    }    }  }}proc url_pub {nick host handle channel text} {global urllogfilename  if {[file exists $urllogfilename]&amp;&amp; [file readable $urllogfilename]} {    set fp [open $urllogfilename r]    set data [read $fp]    close $fp    foreach line [split $data \n] {      if {$text == ""} {      set text [clock format [clock sec] -format %D]      regsub -all {/} $text "" text    }    if {[lindex [split $line] 0] == $text} {        putserv "PRIVMSG $nick :$line"    }    }  }}    proc url_existstitle {query} {global urllogfilename    set file [open $urllogfilename r]    set data [read $file]    close $file        foreach line [split $data \n] {        if {![string match -nocase "*$query*" "*$line*"]} {            continue        }        if {[string match -nocase "*$query*" "*$line*"]} {            catch {unset data}            return 1        }    }    catch {unset data}    return 0    }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6813">username</a> — Thu Jan 28, 2010 4:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tueb]]></name></author>
		<updated>2010-01-28T13:53:50-04:00</updated>

		<published>2010-01-28T13:53:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91881#p91881</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91881#p91881"/>
		<title type="html"><![CDATA[capture all websites posted in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91881#p91881"><![CDATA[
I hope this works:<br><div class="codebox"><p>Code: </p><pre><code>bind pubm - * url_pubmbind pub -|- !web url_pubset urllogfilename "urllog.data"proc url_pubm {nick host handle channel text} {global urllogfilename  foreach word [split $text] {    if {[string length $word] &gt;= 5 &amp;&amp; {[regexp {^(f|ht)tp(s|)://} $word] || [regexp {^www//} $word]}&amp;&amp; ![regexp {://([^/:]*:([^/]*@|\d+(/|$))|.*/\.)} $word]} {      set day [clock format [clock sec] -format %D]      regsub -all {/} $day "" day      set file [open $urllogfilename a]      puts $file "$day - $word - $nick - $host"      close $file    }  }}proc url_pub {nick host handle channel text} {global urllogfilename  if {[file exists $urllogfilename]&amp;&amp; [file readable $urllogfilename]} {    set fp [open $urllogfilename r]    set data [read $fp]    close $fp    foreach line [split $data \n] {      if {$text == ""} {      set text [clock format [clock sec] -format %D]      regsub -all {/} $text "" text    }    if {[lindex [split $line] 0] == $text} {        putserv "PRIVMSG $nick :$line"    }    }  }}</code></pre></div><br>Im not sure if it will still work if you remove the two lines saying "#regsub -all {/} $day "" day". this qould make the date format more readable.<br><br>greetings,<br><br>tueb<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9349">tueb</a> — Thu Jan 28, 2010 1:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2010-01-26T17:03:52-04:00</updated>

		<published>2010-01-26T17:03:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91863#p91863</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91863#p91863"/>
		<title type="html"><![CDATA[capture all websites posted in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91863#p91863"><![CDATA[
Hi.<br><br>I fix something littles error's, and it work.<br><div class="codebox"><p>Code: </p><pre><code>bind pubm - * url_pubmbind pub -|- !web url_pubset urllogfilename "urllog.data"proc url_pubm {nick host handle channel text} {global urllogfilenameforeach word [split $text] {if {[string length $word] &gt;= 5 &amp;&amp; [regexp {^(f|ht)tp(s|)://} $word] &amp;&amp; ![regexp {://([^/:]*:([^/]*@|\d+(/|$))|.*/\.)} $word]} {set day [clock format [clock sec] -format %D]regsub -all {/} $day "" dayset file [open $urllogfilename a]puts $file "$day $word"close $file}}}proc url_pub {nick host handle channel text} {global urllogfilenameif {[file exists $urllogfilename]&amp;&amp; [file readable $urllogfilename]} {set fp [open $urllogfilename r]set data [read $fp]close $fpforeach line [split $data \n] {if {$text == ""} {set text [clock format [clock sec] -format %D]regsub -all {/} $text "" text}if {[lindex [split $line] 0] == $text} {putserv "PRIVMSG $nick :$line"}}}}</code></pre></div><div class="codebox"><p>Code: </p><pre><code>&lt;Chasse&gt; 01262010 http://www.youtube.com/watch?v=iyGBBIKS4f8</code></pre></div>Maybe can add the nick who posted the website?<br><strong class="text-strong">Date - Url - Nick - Ident@host.</strong><br><br>Ex:<br>&lt;Chasse&gt; 01262010 - <a href="http://www.youtube.com/watch?v=iyGBBIKS4f8" class="postlink">http://www.youtube.com/watch?v=iyGBBIKS4f8</a> - Nickname - ( nickname!ident@host )<br><br>And add for work too with "<a href="www" class="postlink">www</a>."<br><br>Thanks tueb.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Tue Jan 26, 2010 5:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tueb]]></name></author>
		<updated>2010-01-26T16:36:54-04:00</updated>

		<published>2010-01-26T16:36:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91861#p91861</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91861#p91861"/>
		<title type="html"><![CDATA[capture all websites posted in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91861#p91861"><![CDATA[
hi, i haven't tested it yet, so theres probably at least one typo in it. let me know if you have problems with it.<br><br>commands:<br><br>!web<br>and<br>!web 01252010 to get yesterdays urls. (please tell me a better command for this ;-) <br><blockquote class="uncited"><div>bind pubm - * url_pubm<br>bind pub -|- !web url_pub<br><br>set urllogfilename "urllog.data"<br><br>proc url_pubm {nick host handle channel text} {<br>global urllogfilename<br><br>  foreach word [split $text] {<br>    if {[string length $word] &gt;= 5 &amp;&amp; [regexp {^(f|ht)tp(s|)://} $word] &amp;&amp; ![regexp {://([^/:]*:([^/]*@|\d+(/|$))|.*/\.)} $word]} {<br><br>       set day [clock format [clock sec] -format %D]<br>       regsub -all {/} $day "" day<br><br>       set file [open $urllogfilename a]<br>       puts $file "$day $word"<br>       close $file<br>  }<br>}<br><br>proc url_pub {nick host handle channel text} {<br>global urllogfilename<br><br>  if {[file exists $urllogfilename]&amp;&amp; [file readable $urllogfilename]} {<br><br>      set fp [open $urllogfilename r]<br>      set data [read  $fp]<br>      close $fp<br><br>      foreach line [split $data \n] {<br>         if {$text == ""} {<br>           set text [clock format [clock sec] -format %D]<br>           regsub -all {/} $text "" text<br>         }<br><br>         if {[lindex [split $line] 0] == $text} {<br>            putserv "PRIVMSG $channel :line"<br>         }<br>      }<br>  }<br>}</div></blockquote><br>ps: posting killed my formatting o.o<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9349">tueb</a> — Tue Jan 26, 2010 4:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2010-01-24T17:42:46-04:00</updated>

		<published>2010-01-24T17:42:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91820#p91820</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91820#p91820"/>
		<title type="html"><![CDATA[capture all websites posted in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91820#p91820"><![CDATA[
Hi<br><br>Can make someone a script for my eggdrop catch all website posted in the channel and save it in a file.<br><br>And when someone put: !webs the eggdrop giveme a list with all website's captured in all day. <br>maybe can have a option for read the websites captured of other days ago.<br><br>thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Sun Jan 24, 2010 5:42 pm</p><hr />
]]></content>
	</entry>
	</feed>
