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

	<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>2003-12-27T14:41:05-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-12-27T14:41:05-04:00</updated>

		<published>2003-12-27T14:41:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31855#p31855</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31855#p31855"/>
		<title type="html"><![CDATA[sugestion]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31855#p31855"><![CDATA[
My interest in this is have all possible links I've clicked till now in my database cos I don't want to use anymore the channel bot cos is usualy lagged and when I try to click some links it dosen't tell me corectly what links should I click cos sometemes it quits with excess flood .. so, that's why I want to make a personal database <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Now I should think of an way to add the result of the clicked links in to the database..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Dec 27, 2003 2:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-12-27T12:15:26-04:00</updated>

		<published>2003-12-27T12:15:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31847#p31847</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31847#p31847"/>
		<title type="html"><![CDATA[sugestion]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31847#p31847"><![CDATA[
you could add a cleanup...<br>it could check for the time difference -&gt; delete the line<br>else you dbase will become quite large by the time, thats not nescessary since only the latest 24h links seam to be of interrest<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Sat Dec 27, 2003 12:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-12-27T10:55:11-04:00</updated>

		<published>2003-12-27T10:55:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31837#p31837</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31837#p31837"/>
		<title type="html"><![CDATA[sugestion]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31837#p31837"><![CDATA[
Here is the finished *click* code:<div class="codebox"><p>Code: </p><pre><code>bind pub f .click my:clickproc my:click {nick uhost hand chan text} {  set list [split [read [set f [open "koc.db" r]]][close $f] \n]   set i 0  foreach bla $list {    if {[llength $bla] &lt; 2} {      continue    }     if {[expr [unixtime] - [lindex $bla 1]] &gt;= 86400} {      putserv "PRIVMSG $chan :[lindex $bla 0]"      incr i    }   }  if {$i} {     putserv "PRIVMSG $chan :Search complete.. Found \002$i\002 result[expr {$i==1?"":"s"}].."     } {     putserv "PRIVMSG $chan :Sorry, no links have been found to be clicked. Try again later."  }}</code></pre></div>Any sugestions are welcomed. <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=187">caesar</a> — Sat Dec 27, 2003 10:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-12-27T09:06:37-04:00</updated>

		<published>2003-12-27T09:06:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31834#p31834</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31834#p31834"/>
		<title type="html"><![CDATA[sugestion]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31834#p31834"><![CDATA[
exactly  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Sat Dec 27, 2003 9:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-12-27T07:08:27-04:00</updated>

		<published>2003-12-27T07:08:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31832#p31832</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31832#p31832"/>
		<title type="html"><![CDATA[sugestion]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31832#p31832"><![CDATA[
<blockquote class="uncited"><div>add something like this to check for blank lines</div></blockquote>as i said, check for them or just don't put them in there the first way <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=1433">GodOfSuicide</a> — Sat Dec 27, 2003 7:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-12-27T05:51:36-04:00</updated>

		<published>2003-12-27T05:51:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31830#p31830</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31830#p31830"/>
		<title type="html"><![CDATA[sugestion]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31830#p31830"><![CDATA[
if I remember correctly opening in "a" mode, it will automatically always set the accesspoint of that file to the end of the file, thus adding a blank line at the end<br>and no, your proc doesn't have any way of checking if a line is blank<div class="codebox"><p>Code: </p><pre><code>if {[llength $bla] &lt; 2} {continue}</code></pre></div>add something like this to check for blank lines<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Sat Dec 27, 2003 5:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-12-27T04:18:53-04:00</updated>

		<published>2003-12-27T04:18:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31823#p31823</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31823#p31823"/>
		<title type="html"><![CDATA[sugestion]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31823#p31823"><![CDATA[
The link is added "normaly" in the file like:<div class="codebox"><p>Code: </p><pre><code>set f [open "koc.db" a]puts $f "[lindex [split $text] 0] [unixtime]" close $f</code></pre></div>Yes I know, that proc just reads from that file and it's suposed to not read the blank ones but it dose..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Dec 27, 2003 4:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-12-26T17:32:01-04:00</updated>

		<published>2003-12-26T17:32:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31819#p31819</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31819#p31819"/>
		<title type="html"><![CDATA[sugestion]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31819#p31819"><![CDATA[
<blockquote class="uncited"><div>Heh.. I was hungry and I've eat an letter.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"></div></blockquote>i'd rather delete it for poor subject line but ok... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><blockquote class="uncited"><div>Edit: Now an "open" problem. Seems that it adds an blank line after adding the link in the file</div></blockquote>that proc doesnt add anything to the file, it's just reading from it.<br>if you have got blank lines just check for them..like "are there 2 words ?" "is the line != \n ?" etc (i'm sorry i cannot provide more help cos i dont see the real problem)<br><blockquote class="uncited"><div>As you can see I've folowed your advice GodOfSuicide, cos yours at another close look seems a lot easier that what I had in mind. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>you're welcome<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Fri Dec 26, 2003 5:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-12-26T16:24:50-04:00</updated>

		<published>2003-12-26T16:24:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31817#p31817</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31817#p31817"/>
		<title type="html"><![CDATA[sugestion]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31817#p31817"><![CDATA[
Heh.. I was hungry and I've eat an letter.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>Edit: Now an "open" problem. Seems that it adds an blank line after adding the link in the file, and again cos of that the "premature end of expression" pops-out his ugly face <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> .. so, any suggestions on how should I get ridd of the blank line?<div class="codebox"><p>Code: </p><pre><code>proc my:click {nick uhost hand chan text} {  set list [split [read [set f [open "koc.db" r]]][close $f] \n]   foreach bla $list {     if {[expr [unixtime] - [lindex $bla 1]] &gt;= 86400} {      putserv "PRIVMSG $chan :[lindex $bla 0]"    }   }}</code></pre></div>As you can see I've folowed your advice GodOfSuicide, cos yours at another close look seems a lot easier that what I had in mind. <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=187">caesar</a> — Fri Dec 26, 2003 4:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2003-12-26T16:10:33-04:00</updated>

		<published>2003-12-26T16:10:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31816#p31816</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31816#p31816"/>
		<title type="html"><![CDATA[sugestion]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31816#p31816"><![CDATA[
<blockquote class="uncited"><div>"sugestion"? I think this post might have to be deleted <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"></div></blockquote>yeah, it has to be "sug<span style="color:red">g</span>estion" <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Fri Dec 26, 2003 4:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-12-26T15:29:47-04:00</updated>

		<published>2003-12-26T15:29:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31815#p31815</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31815#p31815"/>
		<title type="html"><![CDATA[sugestion]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31815#p31815"><![CDATA[
"sugestion"? I think this post might have to be deleted ;)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Fri Dec 26, 2003 3:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-12-26T14:14:48-04:00</updated>

		<published>2003-12-26T14:14:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31813#p31813</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31813#p31813"/>
		<title type="html"><![CDATA[sugestion]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31813#p31813"><![CDATA[
hehe<br><br>let's have a look at it when it's finished, ok ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Fri Dec 26, 2003 2:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-12-26T11:18:29-04:00</updated>

		<published>2003-12-26T11:18:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31808#p31808</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31808#p31808"/>
		<title type="html"><![CDATA[sugestion]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31808#p31808"><![CDATA[
GodOfSuicide : Well.. calculating the duration betwen them or doing what you've said seems to me to be the same thing, at least for me dose, and mine looks a lot easier. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br><br>Damn.. /me slaps itself.. I wonder how the heck did I forgot to add the [unixtime] thing there.. umm.. *problem* fixed. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Dec 26, 2003 11:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-12-26T07:58:26-04:00</updated>

		<published>2003-12-26T07:58:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31803#p31803</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31803#p31803"/>
		<title type="html"><![CDATA[sugestion]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31803#p31803"><![CDATA[
<blockquote class="uncited"><div>Umm.. like comparing if the unixtime from the link is let's say 34 years 1 day 22 hours 6 minutes 59 seconds and my current unixtime is 34 years 2 days 22 hours 6 minutes 59 then it should be working fine, I guess. </div></blockquote>did you listen ? I said NOT to use duration...<br>take the current [unixtime] (NOT DURATION), substract the old one from it<br><br>that looks some kinda like this:<br>current time - old time = x<br>1072443286 - 1072443256 = 30<br><br>if x &gt;= 86400 -&gt; older than 24h<br>(correct me if the value is wrong, thats 60 * 60 * 24)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Fri Dec 26, 2003 7:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-12-26T07:33:14-04:00</updated>

		<published>2003-12-26T07:33:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31801#p31801</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31801#p31801"/>
		<title type="html"><![CDATA[sugestion]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31801#p31801"><![CDATA[
that error means that there is no 2nd element in your list<br>are you sure $bla is a list?<br>do a check on what the $list/$bla contains<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Fri Dec 26, 2003 7:33 am</p><hr />
]]></content>
	</entry>
	</feed>
