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

	<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>2005-03-11T02:16:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2005-03-11T02:16:45-04:00</updated>

		<published>2005-03-11T02:16:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47424#p47424</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47424#p47424"/>
		<title type="html"><![CDATA[Make a sort of countdown proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47424#p47424"><![CDATA[
Yeah, i was attempting to make a proc which will display the exact count down in seconds etc,<br><br>As you are on Quakenet, you are probably familair with Q9 which uses the exact same countdown thing in his permban function <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=5078">metroid</a> — Fri Mar 11, 2005 2:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-03-11T01:45:33-04:00</updated>

		<published>2005-03-11T01:45:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47421#p47421</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47421#p47421"/>
		<title type="html"><![CDATA[Make a sort of countdown proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47421#p47421"><![CDATA[
or try [string is integer -strict $seconds], this would be even true for integers surrounded by whitespaces (which is still a valid integer for expr) and is false on an empty string.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Fri Mar 11, 2005 1:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-03-10T12:28:24-04:00</updated>

		<published>2005-03-10T12:28:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47404#p47404</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47404#p47404"/>
		<title type="html"><![CDATA[Make a sort of countdown proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47404#p47404"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if ![regexp \[0-9\] $seconds] {#not integer</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Thu Mar 10, 2005 12:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2005-03-10T09:27:20-04:00</updated>

		<published>2005-03-10T09:27:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47401#p47401</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47401#p47401"/>
		<title type="html"><![CDATA[Make a sort of countdown proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47401#p47401"><![CDATA[
got it to work with help from someone else<br><div class="codebox"><p>Code: </p><pre><code>proc countdown {seconds} {set minutes [expr $seconds / 60]set seconds [expr $seconds % 60]set hours [expr $minutes / 60]set minutes [expr $minutes % 60]set days  [expr $hours / 24]set hours [expr $hours % 24]return "[format "%d days, %02d:%02d:%02d" $days $hours $minutes $seconds]"}</code></pre></div>Only thing left to fix is that it won't choke on non-integers<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Thu Mar 10, 2005 9:27 am</p><hr />
]]></content>
	</entry>
	</feed>
