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

	<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>2007-12-22T15:04:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Getodacul]]></name></author>
		<updated>2007-12-22T15:04:59-04:00</updated>

		<published>2007-12-22T15:04:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79497#p79497</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79497#p79497"/>
		<title type="html"><![CDATA[Unix time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79497#p79497"><![CDATA[
If i will know how to control that variable i will try to make a top N uptime script (based on signon time).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9046">Getodacul</a> — Sat Dec 22, 2007 3:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Getodacul]]></name></author>
		<updated>2007-12-10T09:55:06-04:00</updated>

		<published>2007-12-10T09:55:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79189#p79189</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79189#p79189"/>
		<title type="html"><![CDATA[Unix time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79189#p79189"><![CDATA[
This date <strong class="text-strong">Mon Dec 10 14:24:31 2007</strong> it's converted to <strong class="text-strong">1197289471</strong> by my eggdrop. And it's not a random number. I think that's unix time. <br>I will put the script here:<blockquote class="uncited"><div>####################################################<br># What is the minimum access someone needs check ontime?<br>set ontime(acc) "-|-"<br>####################################################<br><br>bind pub $ontime(acc) "!ontime" ontime:nick<br><br>proc ontime:nick { nickname hostname handle channel arguments } {<br>global ontime<br>      set nickname [lindex [split $arguments] 0]<br>if {$nickname == ""} {<br>putquick "PRIVMSG $channel :I need a nick to check it."<br>return 0<br>}<br>if {[string length $nickname] &gt;= "16"} {<br>putquick "PRIVMSG $channel :Nickname too long."; return<br>}<br>putquick "whois $nickname $nickname"<br>        set ::ontimechannel $channel<br>set ::ontimenickname $nickname<br>bind RAW - 401 ontime:nosuch<br>bind RAW - 317 ontime:idle<br>}<br><br>proc ontime:putmsg { channel arguments } {<br>putquick "PRIVMSG $channel :$arguments"<br>}<br><br>proc ontime:nosuch { from keyword arguments } {<br>set channel $::ontimechannel<br>set nickname $::ontimenickname<br>ontime:putmsg $channel "No such nickname \"$nickname\""<br>unbind RAW - 401 ontime:nosuch<br>}<br><br>proc ontime:idle { from keyword arguments } {<br>set channel $::ontimechannel<br>set nickname $::ontimenickname<br>set idletime [lindex [split $arguments] 2]<br>set signon [lindex [split $arguments] 3]<br>ontime:putmsg $channel "$nickname has been idle for [duration $idletime], signed on [ctime $signon]"<br>                if {$signon &gt;= "1196691738"} {<br>                putserv "PRIVMSG $channel :$nickname have NOT big uptime and deserve flowers."<br>                } else { <br>                putserv "MODE $channel +v $nickname"<br>                putserv "PRIVMSG $channel :$nickname have big uptime and deserve voice. $signon"<br>                }<br>unbind RAW - 317 ontime:idle<br>}<br><br>putlog "Public ontime script Loaded"</div></blockquote>This code it's inspired by a part of whois.tcl by MeTroiD<br>I need to control somehow <strong class="text-strong">$signon</strong> variable.<br><strong class="text-strong">1196691738</strong> from the script = <strong class="text-strong">Mon Dec  3 16:22:18 2007</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9046">Getodacul</a> — Mon Dec 10, 2007 9:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-12-10T09:00:29-04:00</updated>

		<published>2007-12-10T09:00:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79185#p79185</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79185#p79185"/>
		<title type="html"><![CDATA[Unix time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79185#p79185"><![CDATA[
with the [clock scan] cmd?<br><br><a href="http://www.tcl.tk/man/tcl8.4/TclCmd/clock.htm" class="postlink">http://www.tcl.tk/man/tcl8.4/TclCmd/clock.htm</a><br><br>You weren't very clear in your request..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Mon Dec 10, 2007 9:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Getodacul]]></name></author>
		<updated>2007-12-10T08:40:00-04:00</updated>

		<published>2007-12-10T08:40:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79183#p79183</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79183#p79183"/>
		<title type="html"><![CDATA[Unix time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79183#p79183"><![CDATA[
Mon Dec 10 14:24:31 2007 = 1197289471 in unix time . How i must calculate to find a random date? (ex. 30/08/2008 )<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9046">Getodacul</a> — Mon Dec 10, 2007 8:40 am</p><hr />
]]></content>
	</entry>
	</feed>
