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

	<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>2022-04-13T07:03:05-04:00</updated>

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

		<entry>
		<author><name><![CDATA[roughnecks]]></name></author>
		<updated>2022-04-13T07:03:05-04:00</updated>

		<published>2022-04-13T07:03:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111064#p111064</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111064#p111064"/>
		<title type="html"><![CDATA[Is this actual idle time in #channel or away duration?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111064#p111064"><![CDATA[
<blockquote class="uncited"><div>The eggdrop only sees your idle on the chan it's on (it uses getchanidle).</div></blockquote>Ah, that's it then.<br><blockquote class="uncited"><div>If you want a real back from away notifier, and if your ircd has ircv3 CAP, I've a small script to manage the away</div></blockquote>No, but thanks anyway.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10207">roughnecks</a> — Wed Apr 13, 2022 7:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2022-04-13T04:12:31-04:00</updated>

		<published>2022-04-13T04:12:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111063#p111063</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111063#p111063"/>
		<title type="html"><![CDATA[Is this actual idle time in #channel or away duration?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111063#p111063"><![CDATA[
The eggdrop only sees your idle on the chan it's on (it uses getchanidle).<br><br>If you want a real back from away notifier, and if your ircd has ircv3 CAP, I've a small script to manage the away<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Wed Apr 13, 2022 4:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[roughnecks]]></name></author>
		<updated>2022-04-12T09:54:28-04:00</updated>

		<published>2022-04-12T09:54:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111062#p111062</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111062#p111062"/>
		<title type="html"><![CDATA[Is this actual idle time in #channel or away duration?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111062#p111062"><![CDATA[
I've got this script but am not sure how it works related to idle time checking.<br>Is it calculating the time you haven't send a single message to chan or the actual away duration?<br><br>Trying to explain what I mean:<br>I'm away at night. The next morning I chat on #chan1 where the bot isn't joined and the away automatically lifts (have a script on weechat that does it).<br>Then I go away away for another hour or so and, before I come back, someone calls me on #chan2, where the bot is joined.. At this point the script says I've been idle for 15hrs, i.e. from the night before, while I was chatting this morning and the away was unset and then reset. I'd expect the script to say I was idle only for an hour or so, when the second away was set this morning..<br><br>Here's the script:<br><div class="codebox"><p>Code: </p><pre><code># Fully Automated Away Detection by speechles# Egghelp version v1.3 - tested and working.. yay!!# Donate to slennox @ egghelp.org if you like this script!# Fully automatic, you configure nothing.# The script will decide based upon the length of the nicklist# or the length of user input on which to scan with, it will# use whichever is shorter which makes it faster, enjoy.# MAKE SURE TO .chanset #yourchan +checkaway# afterwards the script will function in #yourchan# revision history# v1.3 - added idle time duration to the away message reply# v1.2 - now wont react if that nickname is away and#        mentions their own nickname in channel. This prevents#        public away messages, etc from making this script#        spam channels.# v1.1 - now fully automated, no more checklist# v1.0 - scripted using checklist user sets in config.# SCRIPT begins: there is no config this is 100% automatic.# -------------# initialize the global variablesvariable checknick ""variable checkchan ""# flag to control behavior per channelsetudef flag checkaway# bind to raw reply concerning away status of whoisbind RAW  -|-  301 checkaway# bind to everything said in channelbind pubm -|- * checkcriteria# check which token to whois phrased from user input.# if we have a match, discern which token to evaluate as nick# and if they are indeed on the channel issue a whois requestproc checkcriteria {nick uhost hand chan text} {   if {[lsearch -exact [channel info $chan] +checkaway] == -1} { return }   set ::checkchan $chan   set ::checknick ""   set text [encoding convertto utf-8 $text]   if {[llength [chanlist $chan]] &lt; [llength [split $text]]} {      foreach n [chanlist $chan] {         if {[lsearch [split [string tolower $text]] [string tolower $n]] != -1} {            if {[string equal [string length $n] [string length [lindex [split $text] [lsearch [split [string tolower $text]] [string tolower $n]]]]]} {               set ::checknick $n               break            }         }      }   } else {      foreach n [split $text] {         if {[lsearch [split [string tolower [join [chanlist $chan]]]] [string tolower $n]] != -1} {            set ::checknick $n            break         }      }   }   if {[string length $::checknick] &amp;&amp; ![string equal $n $nick] &amp;&amp; [onchan $::checknick $chan]} {      putserv "WHOIS $::checknick"   }}# interpret the whois request and make sure the nick requested matches# the whois reply we are searching for. If the person is not away, a 301# will not be sent, and the whois will be ignored as per requested.proc checkaway {from key text} {   if {![string match -nocase [lindex [split $text] 1] $::checknick]} { return }   putserv "privmsg $::checkchan :[lindex [split $text] 1] is away: [string range [join [lrange [split $text] 2 end]] 1 end] \(idle: [duration [expr {[getchanidle $::checknick $::checkchan] * 60}]])"   set ::checknick ""}putlog "Automated away detection Loaded"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10207">roughnecks</a> — Tue Apr 12, 2022 9:54 am</p><hr />
]]></content>
	</entry>
	</feed>
