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

	<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-12-14T21:51:24-04:00</updated>

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

		<entry>
		<author><name><![CDATA[dotslasher]]></name></author>
		<updated>2004-12-14T21:51:24-04:00</updated>

		<published>2004-12-14T21:51:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44029#p44029</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44029#p44029"/>
		<title type="html"><![CDATA[Checkchan (need help displaying Elapsed Time)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44029#p44029"><![CDATA[
tnxie<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3637">dotslasher</a> — Tue Dec 14, 2004 9:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-12-14T21:35:02-04:00</updated>

		<published>2004-12-14T21:35:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44028#p44028</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44028#p44028"/>
		<title type="html"><![CDATA[Checkchan (need help displaying Elapsed Time)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44028#p44028"><![CDATA[
<blockquote class="uncited"><div>do u guys know how to calculate the elapsed time?</div></blockquote><div class="codebox"><p>Code: </p><pre><code>expr {$now-$then}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Dec 14, 2004 9:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dotslasher]]></name></author>
		<updated>2004-12-14T21:24:56-04:00</updated>

		<published>2004-12-14T21:24:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44026#p44026</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44026#p44026"/>
		<title type="html"><![CDATA[Checkchan (need help displaying Elapsed Time)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44026#p44026"><![CDATA[
well i was trying to find a way to calculate the elapsed time, and aparantly that aint the way :p. <br><br>do u guys know how to calculate the elapsed time?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3637">dotslasher</a> — Tue Dec 14, 2004 9:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-12-14T21:12:28-04:00</updated>

		<published>2004-12-14T21:12:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44024#p44024</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44024#p44024"/>
		<title type="html"><![CDATA[Checkchan (need help displaying Elapsed Time)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44024#p44024"><![CDATA[
<blockquote class="uncited"><div>Type:<br><br><strong class="text-strong">.tcl set errorInfo</strong><br><br>In DCC and check which line is causing the problem. Probobaly your conversion of unixtime number into the gmt, est format. Try using clock, seconds along with format.</div></blockquote>Nope. He already located the line causing the problem and it's not even remotely related to what you just said. The error message is pretty unambigous.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Dec 14, 2004 9:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-12-14T21:07:17-04:00</updated>

		<published>2004-12-14T21:07:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44022#p44022</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44022#p44022"/>
		<title type="html"><![CDATA[Checkchan (need help displaying Elapsed Time)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44022#p44022"><![CDATA[
Type:<br><br><strong class="text-strong">.tcl set errorInfo</strong><br><br>In DCC and check which line is causing the problem. Probobaly your conversion of unixtime number into the gmt, est format. Try using clock, seconds along with format.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Dec 14, 2004 9:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-12-14T20:55:16-04:00</updated>

		<published>2004-12-14T20:55:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44020#p44020</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44020#p44020"/>
		<title type="html"><![CDATA[Checkchan (need help displaying Elapsed Time)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44020#p44020"><![CDATA[
what are you trying to "incr"? and what exactly are you trying to do?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Dec 14, 2004 8:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dotslasher]]></name></author>
		<updated>2004-12-14T20:53:26-04:00</updated>

		<published>2004-12-14T20:53:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44019#p44019</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44019#p44019"/>
		<title type="html"><![CDATA[Checkchan (need help displaying Elapsed Time)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44019#p44019"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># Time elapsed to expire each entry, in seconds. If the nick left more than# $dun_rejoin(time) it is assumed he/she is not going back and forthset dun_rejoin(time) 1200# This will hold the info : host time_of_parting old_nick channel_partedset dun_rejoin(nicks) ""bind join - * dun:rejoin:checkproc dun:rejoin:check {nick uhost hand channel} {    global dun_rejoin# Check if the nick joined a channel of interest    set found ""    set chans [string tolower $dun_rejoin(chans)]    if {$chans == "*"} {set chans [string tolower [channels]]}    foreach j $chans {        if {[string tolower $channel] == $j} {            set found $j            break        }    }    if {$found == ""} {return 0}# Check if the host has been seen already    set found -1    set host  [lindex [split $uhost "@"] 1]    for {set j 0} {$j &lt; [llength $dun_rejoin(nicks)]} {incr j 4} {        if {$host == [lindex $dun_rejoin(nicks) $j] &amp;&amp; [string tolower $channel] == [lindex $dun_rejoin(nicks) [expr $j+3]]} {set found $j}    }    if {$found == -1} {        dun:rejoin:clean        return 0    } else {        set previous [lindex $dun_rejoin(nicks) [expr $found+1]]        set poopie [incr [expr $dun_rejoin(time)+[unixtime]] -$previous]        if {$previous &gt; [expr $dun_rejoin(time)+[unixtime]] || $nick == [lindex $dun_rejoin(nicks) [expr $found+2]]} {            dun:rejoin:clean            return 0        } else {            puthelp "WALLCHOPS #darth :\00304$nick\003 ($uhost) rejoined $channel $poopie seconds ago Old Nick was: \00303[lindex $dun_rejoin(nicks) [expr $found+2]]"    dun:rejoin:clean    return 0}    }}</code></pre></div>i'm trying to get the elapsed time to display in the msg that my eggdrop sends to the ops (wallchops).  i know i'm doing sumt wrong but cant figure out what --&gt; current error i'm getting when trying to put in the $poopie variable --&gt;  [Beholder]: [19:45] Tcl error [dun:rejoin:check]: can't read "1103072701": no such variable.<br><br>and the problem lies in this code <br><div class="codebox"><p>Code: </p><pre><code>set poopie [incr [expr $dun_rejoin(time)+[unixtime]] -$previous]</code></pre></div> for sure <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> any hints?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3637">dotslasher</a> — Tue Dec 14, 2004 8:53 pm</p><hr />
]]></content>
	</entry>
	</feed>
