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

	<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>2005-02-24T11:30:24-04:00</updated>

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

		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-02-24T11:30:24-04:00</updated>

		<published>2005-02-24T11:30:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46893#p46893</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46893#p46893"/>
		<title type="html"><![CDATA[Using a command doesn't reset idle]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46893#p46893"><![CDATA[
before reporting as bug, I suggest you to try the 1.6.18 nightly build, because as told, my idle time gets reset even with commands binds ^^.<br><br>PS: plz do a [split ] before using [lindex ] on user input <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">. but as long the target is the only possible argument, i'd recommend to just use $arg ^^<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Thu Feb 24, 2005 11:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Quinie]]></name></author>
		<updated>2005-02-24T10:31:07-04:00</updated>

		<published>2005-02-24T10:31:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46892#p46892</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46892#p46892"/>
		<title type="html"><![CDATA[Using a command doesn't reset idle]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46892#p46892"><![CDATA[
Thx for the link and the help. Going to implement the workaround and will do some testing on other bots on same server etc. Maybe after that i'll send it in as a bug.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4374">Quinie</a> — Thu Feb 24, 2005 10:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-02-24T10:18:30-04:00</updated>

		<published>2005-02-24T10:18:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46891#p46891</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46891#p46891"/>
		<title type="html"><![CDATA[Using a command doesn't reset idle]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46891#p46891"><![CDATA[
Aye i never thought of it as a bug more a quirk <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<br><br>From what i can see you have done nothing wrong and for now you will just have to use workarounds, If you wish to report this as a bug you can do it <a href="http://www.eggheads.org/bugzilla/" class="postlink">here</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Thu Feb 24, 2005 10:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Quinie]]></name></author>
		<updated>2005-02-24T09:28:57-04:00</updated>

		<published>2005-02-24T09:28:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46890#p46890</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46890#p46890"/>
		<title type="html"><![CDATA[Using a command doesn't reset idle]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46890#p46890"><![CDATA[
Well that was my idea to just to check if the user whom gave it is the same as whom your going to pass to.<br><br>But like you said this "Glitch" you have seen before. I thought I should post it here as a bug, or maybe I'm doing something wrong here, or this is just a normal reaction.<br><br>The workaround should work but would not resolve the problems as it could be a small bug.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4374">Quinie</a> — Thu Feb 24, 2005 9:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-02-24T09:12:55-04:00</updated>

		<published>2005-02-24T09:12:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46889#p46889</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46889#p46889"/>
		<title type="html"><![CDATA[Using a command doesn't reset idle]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46889#p46889"><![CDATA[
Ahh i have noticed this 'Glitch' before it seems to not reset your idletime if you trigger a bind. the way you could get around this is to do something like this.<br><div class="codebox"><p>Code: </p><pre><code># set this var as null at top of script.set gStarter ""# In proc StartTimeBomb add this, also add global call to procset gStarter $theStarter# code snippet# if the target matches the starter do whatever you want and return# else do the getchanidle thing.if { [string tolower $gTimebombTarget] == [string tolower $gStarter] } {      # do whatever you want here blow them up etc    set gStarter ""    return  } else if { [getchanidle $theNick $chan] &gt; 1 } {    IRCPrivMSG $chan "You can only give the bomb to someone who isn't idle"    return 0}</code></pre></div>This should work but not tested.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Thu Feb 24, 2005 9:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Quinie]]></name></author>
		<updated>2005-02-24T08:59:03-04:00</updated>

		<published>2005-02-24T08:59:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46888#p46888</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46888#p46888"/>
		<title type="html"><![CDATA[Using a command doesn't reset idle]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46888#p46888"><![CDATA[
It's like the chat above<br><div class="codebox"><p>Code: </p><pre><code>[8:00pm] [ @Quinie] timebomb noname</code></pre></div>Here i give the bomb to a user on the channel this user isn't idle<br>Before typing the command i have been idle. I think using the command resets my idle time with the bot<br><div class="codebox"><p>Code: </p><pre><code>[8:00pm] [a] legna: stuffs the bomb into noname's pants. The display reads [47] seconds. [a][8:00pm] [@legna] Diffuse the bomb by cutting the correct wire. There is one wire. It is Lavender.</code></pre></div>Here the user gets the bomb.<div class="codebox"><p>Code: </p><pre><code>[8:00pm] [Noname] passbomb Quinie</code></pre></div>Here the user wants to give me back the bomb. Well i gave it to the user in the first place so i shouldn't be idle. The tcl script is going to run this code <br><div class="codebox"><p>Code: </p><pre><code>set theNick [lindex $arg 0]if {[getchanidle $theNick $chan] &gt; 1} {IRCPrivMSG $chan "You can only give the bomb to someone who isn't idle"return 0}</code></pre></div>As you can see my nick is used as $theNick. And I started the bomb<br><div class="codebox"><p>Code: </p><pre><code>[8:00pm] [@legna] You can only give the bomb to someone who isn't idle </code></pre></div>This is the result. I would think the bot would pass me the bomb but he/she doesn't <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">. If I would type any line and the user passes the bomb again. I recieve the bomb.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4374">Quinie</a> — Thu Feb 24, 2005 8:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-02-24T08:51:06-04:00</updated>

		<published>2005-02-24T08:51:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46887#p46887</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46887#p46887"/>
		<title type="html"><![CDATA[Using a command doesn't reset idle]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46887#p46887"><![CDATA[
<blockquote class="uncited"><div>This works fine. But when using timebomb when your idle this results in the same error. You can't give the bomb to someone who is idle.</div></blockquote>Ok i am lost now, ( not hard to lose me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> ) does the problem occur when the person who starts the proc is idle or when the person they are giving it too is idle? <br>you want to deny them from passing the bomb to someone who is idle or starting the proc on someone who is idle?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Thu Feb 24, 2005 8:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Quinie]]></name></author>
		<updated>2005-02-24T08:44:27-04:00</updated>

		<published>2005-02-24T08:44:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46886#p46886</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46886#p46886"/>
		<title type="html"><![CDATA[Using a command doesn't reset idle]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46886#p46886"><![CDATA[
sorry for posting in the wrong forum<br><br>i use global vars to store the users.<br>These vars are call on the first line of the function<div class="codebox"><p>Code: </p><pre><code>global db gTimebombTarget botnick bombispassed gTimebombActive gTimebombGavebomb changeofdrop bombstatsstable gAtoombombActive</code></pre></div>target was a existing var. I just added gavebomb. So who now has the bomb was allready in the script. After passing i update those vars<br><div class="codebox"><p>Code: </p><pre><code>set gTimebombTarget "$theNick"set gTimebombGavebomb "$nick"</code></pre></div>$nick comes from the proc call and $TheNick from the $args<br><div class="codebox"><p>Code: </p><pre><code>proc doPassbomb {nick uhost hand chan arg} {</code></pre></div><div class="codebox"><p>Code: </p><pre><code>set theNick [lindex $arg 0]</code></pre></div>There seems to be no error there. The script runs without any errors. The only problem is with using the command when being idle. Your idle time isn't resetted. <br><br>I can't find any error with the script without being idle. I can even config the script so you can only give the bomb back to the person whom gave you the bomb. <br><div class="codebox"><p>Code: </p><pre><code>#if {[string tolower $gTimebombGavebomb] != [string tolower $theNick]} {#IRCPrivMSG $chan "You can only give the bomb back to $gTimebombGavebomb "#return 0#}</code></pre></div>This works fine. But when using timebomb when your idle this results in the same error. You can't give the bomb to someone who is idle.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4374">Quinie</a> — Thu Feb 24, 2005 8:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-02-23T18:51:37-04:00</updated>

		<published>2005-02-23T18:51:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46879#p46879</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46879#p46879"/>
		<title type="html"><![CDATA[Using a command doesn't reset idle]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46879#p46879"><![CDATA[
This thread should be in the TCL section.<br><br>I see you have modified it to pass the bomb from person to person. how are you storing who now has the bomb and how does the detonate proc know who has it? Are you getting any errors on the partyline?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Wed Feb 23, 2005 6:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Quinie]]></name></author>
		<updated>2005-02-23T15:02:31-04:00</updated>

		<published>2005-02-23T15:02:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46875#p46875</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46875#p46875"/>
		<title type="html"><![CDATA[Using a command doesn't reset idle]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46875#p46875"><![CDATA[
well the problem isn't the function I think. The problem is with starting the timebomb<br><br>[8:00pm] [ @Quinie] timebomb noname<br>[8:00pm] [a] legna: stuffs the bomb into noname's pants. The display reads [47] seconds. [a]<br>[8:00pm] [@legna] Diffuse the bomb by cutting the correct wire. There is one wire. It is Lavender.<br>[8:00pm] [Noname] passbomb Quinie<br>[8:00pm] [@legna] You can only give the bomb to someone who isn't idle<br><br>in this example I used the timebomb after being away for 2 minutes.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4374">Quinie</a> — Wed Feb 23, 2005 3:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-02-23T13:56:57-04:00</updated>

		<published>2005-02-23T13:56:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46873#p46873</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46873#p46873"/>
		<title type="html"><![CDATA[Using a command doesn't reset idle]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46873#p46873"><![CDATA[
use this<br><div class="codebox"><p>Code: </p><pre><code>if { [getchanidle $theNick $chan] &gt; 5 &amp;&amp; $theNick != $nick} {      putserv "PRIVMSG $chan :$theNick is Away. Choose another victim!"      return}</code></pre></div>Change number to however many minutes you require.<br><br>I too added a lot of stuff to the timebomb script for my Server including cant be bombed if idle for more than 5 minutes, a kick counter and random bomb messages.<br><br>Hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Wed Feb 23, 2005 1:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Quinie]]></name></author>
		<updated>2005-02-23T13:03:27-04:00</updated>

		<published>2005-02-23T13:03:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46872#p46872</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46872#p46872"/>
		<title type="html"><![CDATA[Using a command doesn't reset idle]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46872#p46872"><![CDATA[
No funnyscripts. Only my own. i'm running eggdrop v1.6.17. The code above is for a rebuild of the timebomb.tcl. I'm letting people pass the bomb but they can't give it to someone who's idle<br><br>if {[getchanidle $theNick $chan] &gt; 1} {<br>IRCPrivMSG $chan "You can only give the bomb to someone who isn't idle"<br>return 0<br>}<br><br>full part of the code. Result for this error is on IRC that someone can give you a bomb by using .timebomb Quinie. And you can't give it back because the user is idle.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4374">Quinie</a> — Wed Feb 23, 2005 1:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-02-23T12:18:34-04:00</updated>

		<published>2005-02-23T12:18:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46870#p46870</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46870#p46870"/>
		<title type="html"><![CDATA[Using a command doesn't reset idle]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46870#p46870"><![CDATA[
just tested with my eggdrop 1.6.18+notesfix and it resets idle even if the command proc returns 1.<br><br>idea: have you any funny script bind to RAW for commands?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Wed Feb 23, 2005 12:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2005-02-23T11:48:03-04:00</updated>

		<published>2005-02-23T11:48:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46868#p46868</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46868#p46868"/>
		<title type="html"><![CDATA[Using a command doesn't reset idle]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46868#p46868"><![CDATA[
no clue, but why is this even neccesary? The variables <strong class="text-strong">set global-idle-kick</strong> and <strong class="text-strong">set idle-kick</strong> do this as it is, no  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_question.gif" width="15" height="15" alt=":?:" title="Question"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Wed Feb 23, 2005 11:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Quinie]]></name></author>
		<updated>2005-02-23T10:53:01-04:00</updated>

		<published>2005-02-23T10:53:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46867#p46867</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46867#p46867"/>
		<title type="html"><![CDATA[Using a command doesn't reset idle]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46867#p46867"><![CDATA[
I have a script that checks the idle time. When a user uses a command like .quote or something this doesn't resets his idle time. <br><br>function goes like this<br>if {[getchanidle $theNick $chan] &gt; 1} {<br>}<br><br>is this normal ? or is this a bug. is there a way around this ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4374">Quinie</a> — Wed Feb 23, 2005 10:53 am</p><hr />
]]></content>
	</entry>
	</feed>
