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

	<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-03-26T13:28:39-04:00</updated>

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

		<entry>
		<author><name><![CDATA[taliesen]]></name></author>
		<updated>2004-03-26T13:28:39-04:00</updated>

		<published>2004-03-26T13:28:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34963#p34963</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34963#p34963"/>
		<title type="html"><![CDATA[getuser $handle LASTON - &quot;issue&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34963#p34963"><![CDATA[
here is the entire code, this is orignially a script called cleanup.tcl by Christian Felde and i just modified it to output names to a html file, instead of deleting them.<br><div class="codebox"><p>Code: </p><pre><code>##bind time - "00 04 * * *" time_scan_userfilebind dcc +m cleanup dcc_scan_userfileproc dcc_scan_userfile {hand idx args} {    putlog "$hand started userfile scan... Time: [time]"    scan_userfile}proc time_scan_userfile {min hour day month year} {    putlog "Stated auto-scan of userfile. Time: [time]"    scan_userfile}proc scan_userfile { } {    set rmusers 0    set errors 0    set file "/home/taliesen/public_html/oldusers.html"    set fs [open $file w]    puts $fs "&lt;html&gt;&lt;body&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;NickName&lt;/td&gt;&lt;td&gt;Last Time Seen&lt;/td&gt;&lt;/tr&gt;"    close $fs     foreach hand [userlist] {   set leave 0      set lastseen [lindex [getuser $hand LASTON] 0] if {$lastseen &lt; [expr [unixtime] - 5184000]} {    if {[matchattr $hand +n] == 1} {set leave 1    }    if {[matchattr $hand +m] == 1} {set leave 1    }    if {[matchattr $hand +f] == 1} {set leave 1    }    if {[matchattr $hand +o] == 1} {set leave 1    }    if {$leave == 0} {putlog "$lastseen"set fs [open $file a]puts $fs "&lt;tr&gt;&lt;td&gt; $hand &lt;/td&gt;"puts $fs "&lt;td&gt; $lastseen &lt;/td&gt;&lt;/tr&gt;" close $fs     }}    }    putlog "CleanUp stats:"    putlog "Current time: [time]"    putlog "Users deleted: $rmusers"    putlog "Errors: $errors"    set fs [open $file a]    puts $fs "&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;"    close $fs }putlog "cleanup.tcl loaded..."putlog "Made by Christian Felde"putlog "email: cfelde@powertech.no or cfelde@geocities.com"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4473">taliesen</a> — Fri Mar 26, 2004 1:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[taliesen]]></name></author>
		<updated>2004-03-26T13:06:33-04:00</updated>

		<published>2004-03-26T13:06:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34962#p34962</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34962#p34962"/>
		<title type="html"><![CDATA[getuser $handle LASTON - &quot;issue&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34962#p34962"><![CDATA[
ok, have a lil script that will write out the users in the userlist that havnt been seen in X ammount of days, this uses the ..<div class="codebox"><p>Code: </p><pre><code>set lastseen [lindex [getuser $hand LASTON] 0]</code></pre></div>$hand would of course be their handle.<br><br>now this works fine in the if statement to check against the unixtime - how ever long a period. BUT when i try to output this to the file that lists the old users, it just does a blank space, nothing else.<br><br>now i have also tried just a full [getuser $hand LASTON] with out the lindex, and same results, nothing.<br><br>even tested to see if there was some weird thing with the puts line, so i used....<div class="codebox"><p>Code: </p><pre><code>putlog "$lastseen"</code></pre></div>just to test this, same result, a bunch of space.<br><br>any ideas why i can use this info in an if statement, but if i try to output the same info i get null?<br><br>TalieseN<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4473">taliesen</a> — Fri Mar 26, 2004 1:06 pm</p><hr />
]]></content>
	</entry>
	</feed>
