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

	<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>2013-07-28T09:50:56-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2013-07-28T09:50:56-04:00</updated>

		<published>2013-07-28T09:50:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101897#p101897</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101897#p101897"/>
		<title type="html"><![CDATA[Smart Idle + Fix + futures]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101897#p101897"><![CDATA[
You got it wrong.<blockquote class="uncited"><div><strong class="text-strong">utimers</strong><br>    Returns: a list of active secondly timers. Each entry in the list contains the number of minutes left till activation, the command that will be executed, and the timerID.<br>    Module: core</div></blockquote>In your case<div class="codebox"><p>Code: </p><pre><code>{8 {putlog test} timer88}</code></pre></div>translates into the fact that this has been executed 8 times so far, the command to be executed is <em class="text-italics">putlog test</em> and it's unique id is in fact timer88. You will need to kill this unique id, not the variable $var like you said.<br><br>Haven't tested but I think this should work.<div class="codebox"><p>Code: </p><pre><code>foreach {no cmd uid} [utimers] {killutimer $uid}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Jul 28, 2013 9:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-07-28T06:22:24-04:00</updated>

		<published>2013-07-28T06:22:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101895#p101895</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101895#p101895"/>
		<title type="html"><![CDATA[Smart Idle + Fix + futures]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101895#p101895"><![CDATA[
To set and kill a specified UTIMER/TIMER ID you just have to set a var for that. Just like this one<br><br><br><div class="codebox"><p>Code: </p><pre><code>&lt;_MaDaLiN_&gt; .tcl set var [utimer 10 [list putlog "test"]]&lt;(Ascenture&gt; Tcl: timer88&lt;_MaDaLiN_&gt; .tcl utimers&lt;(Ascenture&gt; Tcl: {8 {putlog test} timer88}&lt;_MaDaLiN_&gt; .tcl killutimer $var&lt;(Ascenture&gt; Tcl: </code></pre></div>So you will always have $var as "putlog test" of course var's must be unique<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Sun Jul 28, 2013 6:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arkadietz]]></name></author>
		<updated>2013-07-28T04:22:31-04:00</updated>

		<published>2013-07-28T04:22:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101893#p101893</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101893#p101893"/>
		<title type="html"><![CDATA[Smart Idle + Fix + futures]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101893#p101893"><![CDATA[
I've searching but i can't find exactly that i want. So i will explain in next rows what i need.<br><br><strong class="text-strong">1.</strong> On idle to deop/voice/halfop users ( Note: will be great to remove op/voice/halfop on one row ) Like: egg sets mode -oohv nick nick nick nick<br><strong class="text-strong">2.</strong> Has a variable where you can set "what is the maximum idle of users they can <strong class="text-strong">(using timer or utimer)</strong>"<br><strong class="text-strong">3.</strong> Has variable on what time to check idle users (using timer or utimer ( sharp as possible. ). Note: you can't use crontab for the reason you can't kill the process.<br><strong class="text-strong">4.</strong> Has a variable for exempt users like a flag +L <strong class="text-strong">(This flag can be set only from perm owners)</strong><br><strong class="text-strong">5.</strong>It comes and the most important part. There is no one tcl can support this future. <strong class="text-strong"><span style="color:red">On .rehash to kill all timers.</span></strong> <br>Here is the link where has more explanations: <a href="http://tclhelp.net/unb/108" class="postlink">http://tclhelp.net/unb/108</a><br>The point is to find id of timers and kill  them on rehash. Till now on rehash timers still work and going a big mess. Only .restart prevent this but how we all know that's two different commands. <br><br><strong class="text-strong">Hint:</strong> I believe that's the check for perm owners<br><div class="codebox"><p>Code: </p><pre><code>proc ispermowner {hand} {  global owner  regsub -all -- , [string tolower $owner] "" owners  if {([matchattr $hand n]) &amp;&amp; \      ([lsearch -exact $owners [string tolower $hand]] != -1)} then {    return 1  }  return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7974">Arkadietz</a> — Sun Jul 28, 2013 4:22 am</p><hr />
]]></content>
	</entry>
	</feed>
