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

	<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>2002-10-14T11:44:53-04:00</updated>

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

		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2002-10-14T11:44:53-04:00</updated>

		<published>2002-10-14T11:44:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11978#p11978</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11978#p11978"/>
		<title type="html"><![CDATA[Utimer question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11978#p11978"><![CDATA[
<blockquote class="uncited"><div>I beleive that "Bad documentation".<br><br>If eggdrop is following the same method as fileevent (Tcl provided), with it's (u)timer (eggdrop provided) command, then the implimentation is the same.</div></blockquote>No one said that it was following the same method as fileevent.<br>filevent's parameter is a "script"... (u)timer's parameter was "tcl-command" since pre-eggdrop 1.1.5... by changing it to "script"<br>in 1.2.x/1.3.x was rather both bad implementation AND bad judgment, in the fact that it could have caused scripts to break.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Mon Oct 14, 2002 11:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-10-14T11:28:43-04:00</updated>

		<published>2002-10-14T11:28:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11976#p11976</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11976#p11976"/>
		<title type="html"><![CDATA[Utimer question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11976#p11976"><![CDATA[
I beleive that "Bad documentation".<br><br>If eggdrop is following the same method as fileevent (Tcl provided), with it's (u)timer (eggdrop provided) command, then the implimentation is the same.<br><br>Documentation, whould reflect the implimentation. Implimentation should follow specifications. tcl-commands.doc is documentation, and as such, make it wrong, and not the command (as we don't have a specification).<br><br>Thus, the documenation should read<blockquote class="uncited"><div>  timer &lt;minutes&gt; &lt;script&gt;<br>    Description: evaluates the given script after a certain number of<br>      minutes have passed<br>    Returns: a timerID<br>    Module: core<br><br>  utimer &lt;seconds&gt; &lt;script&gt;<br>    Description: executes the given script after a certain number of<br>      seconds have passed<br>    Returns: a timerID<br>    Module: core</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Oct 14, 2002 11:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2002-10-14T10:55:34-04:00</updated>

		<published>2002-10-14T10:55:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11970#p11970</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11970#p11970"/>
		<title type="html"><![CDATA[Utimer question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11970#p11970"><![CDATA[
<blockquote class="uncited"><div>IE<div class="codebox"><p>Code: </p><pre><code>timer 5 "callproc $arg1 $arg2 $arg3"</code></pre></div>This is a string, when it wants a list.</div></blockquote>  Check the tcl-commands.doc and you will find this to be an incorrect statement.  The quoting method was fine up to eggdrop1.1.5,<br>the only reason it was changed was to add stacking of commands to timers via semi-colon, which the tcl-commands.doc does not even reflect. <br><br>It says:<blockquote class="uncited"><div>timer &lt;minutes&gt; &lt;tcl-command&gt; <br>Description: executes the given Tcl command after a certain number of minutes have passed</div></blockquote>Also, note the "tcl-command" .. not "tcl-commands" or "tcl-command(s)".<br>Singular.<br><br>So in conclusion, I have successfully shown that, yes, indeed, it is bad implementation.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Mon Oct 14, 2002 10:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-10-14T04:46:26-04:00</updated>

		<published>2002-10-14T04:46:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11959#p11959</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11959#p11959"/>
		<title type="html"><![CDATA[Utimer question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11959#p11959"><![CDATA[
It has nothing to do with implimentation.<br><br>The same thing would apply for commands like "fileevent", and these do not use bad implimentation.<br><br>Tcl uses lists heavily, this is true for callin commands too.<br><br>Tcl will build a list, to pass to a proc it will call. This list is no different to any other list, it must be handled properly, IE, you shouldn't use string commands or treat it as a string (though each element in the list can be).<br><br>IE<div class="codebox"><p>Code: </p><pre><code>timer 5 "callproc $arg1 $arg2 $arg3"</code></pre></div>This is a string, when it wants a list.<br><br>You can simply pass it a single command, wihtout fail<div class="codebox"><p>Code: </p><pre><code>timer 5 callproc</code></pre></div>as you are only passing it a single item in a list, and Tcl will handle this correctly.<br><br>If timer was to use a method, that would escape the list for you, this would be incorrect, and wouldn't follow the standard.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Oct 14, 2002 4:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2002-10-13T13:15:55-04:00</updated>

		<published>2002-10-13T13:15:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11946#p11946</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11946#p11946"/>
		<title type="html"><![CDATA[Utimer question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11946#p11946"><![CDATA[
<blockquote class="uncited"><div>The command, is pretty simple too, yet you have to be a little carful, as this is an area, where backdoors/exploits can be left in a script (accidentaly thoug, it's just bad coding practice that causes it).<br><br>In your case, you would use somthing like.<br><div class="codebox"><p>Code: </p><pre><code>utimer 5 [list putserv "MODE $chan -o $nick"]</code></pre></div></div></blockquote>  It's not actually 'bad coding' related per-se.. more like 'bad implementation' by robey and co. in the early eggdrop 1.2.x/1.3.x<br>days when they changed the behaviour of 'timer' and 'utimer'.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sun Oct 13, 2002 1:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[OnFire]]></name></author>
		<updated>2002-10-13T05:44:34-04:00</updated>

		<published>2002-10-13T05:44:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11941#p11941</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11941#p11941"/>
		<title type="html"><![CDATA[Utimer question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11941#p11941"><![CDATA[
Thanks a lot!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1982">OnFire</a> — Sun Oct 13, 2002 5:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-10-12T10:41:51-04:00</updated>

		<published>2002-10-12T10:41:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11910#p11910</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11910#p11910"/>
		<title type="html"><![CDATA[Utimer question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11910#p11910"><![CDATA[
If I had a better monitor, it would be better, because I could read the text people are writting. This system has seen too many games in it's time, so I excuse me if somthign has been covered, or I have misread anything.<br><br>utimer (and timer for that matter), use the same format.<br><blockquote class="uncited"><div>(u)timer &lt;(seconds)mins&gt; &lt;command&gt;</div></blockquote>As such, the command used, and the time vaklue used, are simple to work out.<br><br>The command, is pretty simple too, yet you have to be a little carful, as this is an area, where backdoors/exploits can be left in a script (accidentaly thoug, it's just bad coding practice that causes it).<br><br>In your case, you would use somthing like.<br><div class="codebox"><p>Code: </p><pre><code>utimer 5 [list putserv "MODE $chan -o $nick"]</code></pre></div>While this will work for you (making sure the variables $chan and $nick are set correctly), it does pose one small issue.<br><br>What if the user changes there nickname in that 5 seconds?<br><br>Well, the answer is, they will remain +o in the channel.<br><br>For this, you will need to create a seperate proc, that will track nickname changes, and deop the person acordingly.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sat Oct 12, 2002 10:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spyda]]></name></author>
		<updated>2002-10-12T10:13:19-04:00</updated>

		<published>2002-10-12T10:13:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11907#p11907</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11907#p11907"/>
		<title type="html"><![CDATA[Hmm.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11907#p11907"><![CDATA[
<blockquote class="uncited"><div>utimer &lt;seconds&gt; &lt;tcl-command&gt;<br>    Description: executes the given Tcl command after a certain number of<br>      seconds have passed<br>    Returns: a timerID<br>    Module: core</div></blockquote>Ok. havn't realy worked with timers much. But I will give it a go!<br><br>  I am not sure how many ways you can use a timer, but there is one way that I know of that worked in one of my scritps. With using a timer you can make it goto another proc or make it exec the command after the set time. <br> <div class="codebox"><p>Code: </p><pre><code>utimer 5 another_proc $nick</code></pre></div>or<br><div class="codebox"><p>Code: </p><pre><code>utimer 5 "pushmode $chan -o $who"</code></pre></div>So I hope that helps you out a little and if anyone has anymore infomation on using timers, I would love to know!<br><br>------------<br>ThePope<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1731">spyda</a> — Sat Oct 12, 2002 10:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[OnFire]]></name></author>
		<updated>2002-10-12T09:28:49-04:00</updated>

		<published>2002-10-12T09:28:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11901#p11901</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11901#p11901"/>
		<title type="html"><![CDATA[Utimer question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11901#p11901"><![CDATA[
I'm trying to make a script which would op someone on the channel for 5 seconds then de-op them. The problem is I can't work out how the utimer command works. I've looked in tcl-commands.doc but I haven't found anything useful. Please help me!<br><br>Cheers.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1982">OnFire</a> — Sat Oct 12, 2002 9:28 am</p><hr />
]]></content>
	</entry>
	</feed>
