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

	<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>2008-12-24T10:02:14-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ShavdApe]]></name></author>
		<updated>2008-12-22T13:11:18-04:00</updated>

		<published>2008-12-22T13:11:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86451#p86451</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86451#p86451"/>
		<title type="html"><![CDATA[Check Pretime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86451#p86451"><![CDATA[
ideally you want time in seconds of your pretime<br><br>Now im not sure what your $timestamp looks like if its just unixtime but at the time of the pre then <br>set ago [expr $timestamp -[unixtime]] is all you need and youll be left with the amount of seconds between those two times.<br>if timestamp is more like a date format then use [clock scan $timestamp] <br><br>now youll need a limit set in seconds and then simply your if statement would look something like <br>set limit 3600 <br>if {$ago &gt; $limit} { <br>putqucik "PRIVMSG $chan :\[BACKFiLL] -- $rls was pred $ago ago<br>}<br>note 3600 = 1 hour in seconds hence the 12 * 3600 comment above i think<br><br>I think thats all correct anyway someone im sure will correct me if im wrong.<br><br>*edit*<br>ah looking at the above again it appears your $ago is more like <strong class="text-strong">1 hour 30 secs </strong> ill assume your duration process does that if thats the case youll need to do that after the if cos the above code would work in seconds only. Hope this all helps not something I usually do this helping people business cos I suck at it lol<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4266">ShavdApe</a> — Mon Dec 22, 2008 1:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[intel]]></name></author>
		<updated>2008-12-19T23:56:01-04:00</updated>

		<published>2008-12-19T23:56:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86403#p86403</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86403#p86403"/>
		<title type="html"><![CDATA[Check Pretime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86403#p86403"><![CDATA[
I have<br>set time1 [unixtime]<br> incr time1 -$timestamp<br>set ago [duration $time1]<br>set after [clock clicks -milliseconds]<br><br>so I am confused as to what I should be doing and why 3600 *12?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9747">intel</a> — Fri Dec 19, 2008 11:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[x-treem]]></name></author>
		<updated>2008-12-19T18:58:58-04:00</updated>

		<published>2008-12-19T18:58:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86387#p86387</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86387#p86387"/>
		<title type="html"><![CDATA[Check Pretime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86387#p86387"><![CDATA[
you sure have something that will call a duration function, somewhere there you should have a difference betwen now and pretime that is the variable you look for (or create one if that is not set to a variable). If that is &gt;12h (3600 * 12) or whatever you like, then BACKFILL<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10064">x-treem</a> — Fri Dec 19, 2008 6:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[intel]]></name></author>
		<updated>2008-12-24T10:02:14-04:00</updated>

		<published>2008-12-19T15:02:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86381#p86381</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86381#p86381"/>
		<title type="html"><![CDATA[Check Pretime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86381#p86381"><![CDATA[
I am trying to get my script to announce BACKFiLL if the pretime is older then 12hrs.<br> <br>Any help is appreciated.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9747">intel</a> — Fri Dec 19, 2008 3:02 pm</p><hr />
]]></content>
	</entry>
	</feed>
