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

	<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>2006-05-09T09:44:09-04:00</updated>

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

		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2006-05-09T09:44:09-04:00</updated>

		<published>2006-05-09T09:44:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62836#p62836</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62836#p62836"/>
		<title type="html"><![CDATA[[SOLVED] can't read &quot;lastseen&quot;: no such variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62836#p62836"><![CDATA[
I made 2 changes and it's working fine.<br><br>1:<br><div class="codebox"><p>Code: </p><pre><code>proc ac:last_seen {nick uhost hand text dest} {global lastseenset text [split $text]set lastseen [lindex $text 2]}</code></pre></div>2nd:<br><div class="codebox"><p>Code: </p><pre><code>if {$lastseen &gt;= 2} {return}</code></pre></div>Thanks to chris and you all <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=5982">iamdeath</a> — Tue May 09, 2006 9:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2006-05-09T08:43:03-04:00</updated>

		<published>2006-05-09T08:43:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62835#p62835</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62835#p62835"/>
		<title type="html"><![CDATA[[SOLVED] can't read &quot;lastseen&quot;: no such variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62835#p62835"><![CDATA[
no luck ;/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Tue May 09, 2006 8:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GeeX]]></name></author>
		<updated>2006-05-09T08:15:41-04:00</updated>

		<published>2006-05-09T08:15:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62834#p62834</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62834#p62834"/>
		<title type="html"><![CDATA[[SOLVED] can't read &quot;lastseen&quot;: no such variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62834#p62834"><![CDATA[
try it with a string<br><div class="codebox"><p>Code: </p><pre><code>setudef str lastseen</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6744">GeeX</a> — Tue May 09, 2006 8:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2006-05-09T06:13:35-04:00</updated>

		<published>2006-05-09T06:13:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62831#p62831</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62831#p62831"/>
		<title type="html"><![CDATA[[SOLVED] can't read &quot;lastseen&quot;: no such variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62831#p62831"><![CDATA[
Hi, this is my another script I am having the similiar problem I had eariler with bonus script. What I am trying to do is, if a user's LAST SEEN matches 2 or more thescript stop/return. But I've tried all the possible ways, I am failure. Can you help me out fixing it.<br>Thanks.<br><br><div class="codebox"><p>Code: </p><pre><code>set ac(owner_username) "owner"set ac(bot_username) "Bot-Username"set notifyusers "owner"set counter ""bind notc - "USER: * ACCESS: *" ac:get_userbind notc - "*SUSPENDED*" ac:block_userbind notc - "LAST SEEN: *" ac:last_seenbind notc - "LAST MODIFIED: * ago*" ac:modify_checkbind time - "* * * * *" ac:checkproc ac:list { handle idx text } {global ac botnick user_namesputdcc $idx "Current users: $user_names"}proc ac:check { min hour day month year } {global ac user_names counterac:get_listif {$counter == ""} { set counter "-1" }if {[lindex $user_names $counter] == ""} { set counter "-1" }incr counterif {[lindex $user_names $counter] == ""} { return }puthelp "PRIVMSG X :ACCESS $ac(chan) [lindex $user_names $counter] -modif"}proc ac:get_user {nick uhost hand text dest } {global botnick ac xaccess xusernameif {$nick != "X"} { puthelp "PRIVMSG $ac(chan) :Nickanme: $nick"; return }set text [split $text]set xusername [lindex $text 1]set xaccess [lindex $text 3]}proc ac:block_user {nick uhost hand text dest} {set xaccess "399"}proc ac:last_seen {nick uhost hand text dest} {set text [split $text]set lastseen [lindex $text 2]}proc ac:modify_check {nick uhost hand text dest } {global botnick ac xaccess xusername who_main day_main lastseenset text [split $text]set who_mod [lindex $text 2]set day_mod [lindex $text 4]set prim_1 $who_mod$day_modset prim_1 [split $prim_1 ")("]set prim_1_1 [lindex $prim_1 0]set day_main [lindex $prim_1 3]set who_main [lindex $prim_1 1]ac:recap $xaccess $xusername $who_main $day_main $lastseen}proc ac:recap { xaccess xusername who_main day_main lastseen } {global ac user_names notifyusersif {[string tolower $who_main] != [string tolower $ac(bot_username)] &amp;&amp; [string tolower $who_main] != [string tolower $ac(owner_username)]} { return }if {$lastseen &gt;= "2"} {return}if {$xaccess == "399"} { return }if {$day_main == "0"} { return }puthelp "PRIVMSG X :MODINFO $ac(chan) ACCESS $xusername [expr $xaccess + 1]"if {$notifyusers != "" &amp;&amp; $notifyusers != " "} {foreach notfuser $notifyusers {sendnote IDA_SYSTEM $notfuser "Modified +1 Access Level to $text in $ac(chan)."}}}</code></pre></div>The error I get in DCC is:<br><div class="codebox"><p>Code: </p><pre><code>Tcl error [ac:modify_check]: can't read "lastseen": no such variable</code></pre></div>First I fixed "Suspended", if a username is suspended by anyone the bot will return, so I mentioned it as == 399, that's solved. but LASTSEEN is giving me errors. I want the bot to check LAST SEEN, if a person is not shown within 2 days bot shouldnt modify him. Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Tue May 09, 2006 6:13 am</p><hr />
]]></content>
	</entry>
	</feed>
