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

	<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>2003-01-14T06:19:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-14T06:19:42-04:00</updated>

		<published>2003-01-14T06:19:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15279#p15279</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15279#p15279"/>
		<title type="html"><![CDATA[On Join Auto Voice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15279#p15279"><![CDATA[
putdcc is not at issue here.<br><br>The partyline and an IRC server are 2 different things.<br><br>putdcc doesn't queue any of it's output.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Jan 14, 2003 6:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SmokeyOne]]></name></author>
		<updated>2003-01-14T06:13:19-04:00</updated>

		<published>2003-01-14T06:13:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15276#p15276</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15276#p15276"/>
		<title type="html"><![CDATA[putdcc comands]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15276#p15276"><![CDATA[
putdcc comands can be tricky, from experience every knows that it can be annoying<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2530">SmokeyOne</a> — Tue Jan 14, 2003 6:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-01-10T19:58:07-04:00</updated>

		<published>2003-01-10T19:58:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15149#p15149</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15149#p15149"/>
		<title type="html"><![CDATA[On Join Auto Voice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15149#p15149"><![CDATA[
<blockquote class="uncited"><div>Nope, you are forgetting to acknowledge the sentance before the one you quote.<br><br>As noted, they are queued. As we know, eggdrop queue support flood protection. This is where is the reason behind modes not being sent. It should probably read "sent as soon as possible" though.<br></div></blockquote>  Well of course they are queues, but the sentence implies that the queue will be flushed/dumped to server upon exiting of script code. Thus, the doc is in error.<br><br>Quad Erad Demonstrantum.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Fri Jan 10, 2003 7:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-10T06:42:16-04:00</updated>

		<published>2003-01-10T06:42:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15127#p15127</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15127#p15127"/>
		<title type="html"><![CDATA[On Join Auto Voice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15127#p15127"><![CDATA[
Nope, you are forgetting to acknowledge the sentance before the one you quote.<br><br>As noted, they are queued. As we know, eggdrop queue support flood protection. This is where is the reason behind modes not being sent. It should probably read "sent as soon as possible" though.<br><br>If there is a real need to bypass the flood protection of the queue system, you can use the non-documented putdccraw command. It is very simalar to putdcc, but has 1 extra requirment, and 1 extra function.<br><br>putdcc uses the format<blockquote class="uncited"><div>putdcc &lt;idx&gt; &lt;string&gt;</div></blockquote>While putdccraw uses<blockquote class="uncited"><div>putdccraw &lt;idx&gt; &lt;string&gt; &lt;length&gt;</div></blockquote>You are required to pass the length of the data you wish to send. In most cases, a Tcl "string length" will be enough.<br><br>The extra function, is that you can use a IDX of 0, to send to the currently connected IRC server.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Fri Jan 10, 2003 6:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-01-09T22:42:42-04:00</updated>

		<published>2003-01-09T22:42:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15116#p15116</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15116#p15116"/>
		<title type="html"><![CDATA[On Join Auto Voice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15116#p15116"><![CDATA[
<blockquote class="uncited"><div>They are not faulse details, more incomplete.<br><br>Most people forget that one function of a program, can effect another. In this case, messages in the queue before pushmode is called (the mode queue doesn't just help mode changes), can direct effect how and when the pushmode change will take place.<br><br>I hate being right, as much as I love it. However, it's my and my mighty ways, that requires me to ram home messages <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz">.</div></blockquote>Well, in this case, you are wrong about the documentation  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> <br>As Papillion posted:<br><br>pushmode &lt;channel&gt; &lt;mode&gt; [arg] <br>sends out a channel mode change (ex: pushmode #lame +o goober) through <br>the bot's queueing system; all the mode changes will be sent out at <br>once (combined into one line as much as possible) after the script <br>finishes, or when 'flushmode' is called <br><br>Note the sentence: "all the mode changes will be sent out at once after the script finishes...". This is false, as proved by yourself, and by the example I gave in my last post.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Jan 09, 2003 10:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-09T17:16:13-04:00</updated>

		<published>2003-01-09T17:16:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15103#p15103</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15103#p15103"/>
		<title type="html"><![CDATA[On Join Auto Voice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15103#p15103"><![CDATA[
They are not faulse details, more incomplete.<br><br>Most people forget that one function of a program, can effect another. In this case, messages in the queue before pushmode is called (the mode queue doesn't just help mode changes), can direct effect how and when the pushmode change will take place.<br><br>I hate being right, as much as I love it. However, it's my and my mighty ways, that requires me to ram home messages <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz">.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Jan 09, 2003 5:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-01-09T15:40:31-04:00</updated>

		<published>2003-01-09T15:40:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15096#p15096</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15096#p15096"/>
		<title type="html"><![CDATA[On Join Auto Voice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15096#p15096"><![CDATA[
<blockquote class="uncited"><div>Quite correct, pushmode is not puthelp.<br><br>These are two seperate queues, but queue nether the less. The server queue just has higher priority over the help queue.<br><br>After a good search of the source code, it's pretty complex. However, the code shows that deq_msg is called, by queue_server, to send important messages in the MODE queue.<br><br>On top, it's also called once per second.<br><br>Within the deq_msg function, there is code, that will limit the amount of items sent.<br><br>The conditions on sending informatiopn from the mode queue, are as follows<br><br>1: There must be content in the mode queue.<br>2: The values of burst must not be above 4.<br>3: The alapsed time since the last message was sent, must not be below the MAXPENALITY value.<br><br>So, if the burst value has been reached, just before some1 joins, the mode can't be sent once the proc has been complete.<br><br>The mode will have to wait, until either the "once per second" clear queue has reached the modes position in the queue.<br><br>It is quite true, that a equivilant call to flushmodes is called after the proc, but again, the queue needs to be empty enough, for the mode in question to be sent.;</div></blockquote>  Hmm.. A quick check asserts that you are correct  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> <div class="codebox"><p>Code: </p><pre><code>.tcl proc mytest {} {pushmode #chan v nick}; mytest; pushmode #chan +m</code></pre></div>Result (as predicted by ppslim):<br>*** BOT sets mode: +mv nick<br><br>My apologies... <br><br>Looks as though however the documentation in tcl-commands.doc needs to be updated to reflect this, instead of providing false details.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Jan 09, 2003 3:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-09T15:10:51-04:00</updated>

		<published>2003-01-09T15:10:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15095#p15095</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15095#p15095"/>
		<title type="html"><![CDATA[On Join Auto Voice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15095#p15095"><![CDATA[
Quite correct, pushmode is not puthelp.<br><br>These are two seperate queues, but queue nether the less. The server queue just has higher priority over the help queue.<br><br>After a good search of the source code, it's pretty complex. However, the code shows that deq_msg is called, by queue_server, to send important messages in the MODE queue.<br><br>On top, it's also called once per second.<br><br>Within the deq_msg function, there is code, that will limit the amount of items sent.<br><br>The conditions on sending informatiopn from the mode queue, are as follows<br><br>1: There must be content in the mode queue.<br>2: The values of burst must not be above 4.<br>3: The alapsed time since the last message was sent, must not be below the MAXPENALITY value.<br><br>So, if the burst value has been reached, just before some1 joins, the mode can't be sent once the proc has been complete.<br><br>The mode will have to wait, until either the "once per second" clear queue has reached the modes position in the queue.<br><br>It is quite true, that a equivilant call to flushmodes is called after the proc, but again, the queue needs to be empty enough, for the mode in question to be sent.;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Jan 09, 2003 3:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-01-09T14:02:15-04:00</updated>

		<published>2003-01-09T14:02:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15091#p15091</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15091#p15091"/>
		<title type="html"><![CDATA[On Join Auto Voice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15091#p15091"><![CDATA[
<blockquote class="uncited"><div>Not all modes will be flushed from the queue on return from a proc.<br><br>It all depends how full the queue is before the proc is enetered.<br><br>Remember, items in the queue are delayed, to prevent the bot from flooding off. If, as you are saying, they are all sent, before another proc is called, then the bot would rather likely lagg even more, during high queue usage.</div></blockquote>  When a bound procedure is returned (a bound procedure is considered to be a "script" regardless of whether there are more procedures + binds in a file), it is the same as a flushmode being sent.  pushmode is not puthelp.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Jan 09, 2003 2:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-09T13:48:04-04:00</updated>

		<published>2003-01-09T13:48:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15089#p15089</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15089#p15089"/>
		<title type="html"><![CDATA[On Join Auto Voice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15089#p15089"><![CDATA[
Not all modes will be flushed from the queue on return from a proc.<br><br>It all depends how full the queue is before the proc is enetered.<br><br>Remember, items in the queue are delayed, to prevent the bot from flooding off. If, as you are saying, they are all sent, before another proc is called, then the bot would rather likely lagg even more, during high queue usage.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Jan 09, 2003 1:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-01-09T12:58:45-04:00</updated>

		<published>2003-01-09T12:58:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15084#p15084</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15084#p15084"/>
		<title type="html"><![CDATA[On Join Auto Voice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15084#p15084"><![CDATA[
<blockquote class="uncited"><div>Not allways true.<br><br>During high queue load periods, modes will be stacked, which is beneficial.<br><br>However, this again, is simply a performance issue.</div></blockquote>In THIS case it IS true, since as Papillion was stating, the script WILL finish, since the "script" (procedure called) is just one single pushmode<br>, meaning there are no other modes to be stacked in the queue from within that "script" (procedure), and thus the queue will be emptied immediately.<br><br>If there were multiple modes being sent in that "script" (procedure), THEN the pushmode would be effective.<br><br>Read the definition Papillion posted from tcl-commands.doc again, and you will understand if this didn't clear things up.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Jan 09, 2003 12:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-09T06:51:58-04:00</updated>

		<published>2003-01-09T06:51:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15057#p15057</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15057#p15057"/>
		<title type="html"><![CDATA[On Join Auto Voice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15057#p15057"><![CDATA[
Not allways true.<br><br>During high queue load periods, modes will be stacked, which is beneficial.<br><br>However, this again, is simply a performance issue.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Jan 09, 2003 6:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-01-09T06:08:05-04:00</updated>

		<published>2003-01-09T06:08:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15056#p15056</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15056#p15056"/>
		<title type="html"><![CDATA[On Join Auto Voice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15056#p15056"><![CDATA[
<blockquote class="uncited"><div>why always a * bind? isnt a modular check not faster than a tcl if? by the way this way its only one if... i know, it doesnt matter at all, but teoretically it saves CPU time . and i would recommed using pushmode to make the bot aviable to put multible modes into one line. <br>Code: <br>bind join - "#wwwarez \[WWW\]*" warezjoinvoice <br><br>proc warezjoinvoice {nick host hand chan} { <br>  pushmode $chan +v $nick <br>} <br><br><br>btw. tcl-commds.doc is a nice thing to read... not to say RTFM </div></blockquote>regarding the pushmode... <br><br> pushmode &lt;channel&gt; &lt;mode&gt; [arg]<br>    sends out a channel mode change (ex: pushmode #lame +o goober) through<br>      the bot's queueing system; all the mode changes will be sent out at<br>      once (combined into one line as much as possible) after the script<br>      finishes, or when 'flushmode' is called<br><br>this is really not needed in this script as it will handle each join seperatly, meaning it will alwyas be just one mode per line <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink">... it is ofc not wrong to use it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu Jan 09, 2003 6:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-08T18:20:37-04:00</updated>

		<published>2003-01-08T18:20:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15041#p15041</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15041#p15041"/>
		<title type="html"><![CDATA[On Join Auto Voice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15041#p15041"><![CDATA[
It saves so little processing time, it's not worth it. Unless you are designing a bot, capable of running allmost every script under the sun.<br><br>On top, the reason my all my script code designed with the if?<br><br>It's far simpler to understand IF logic within a Tcl script, than it is to understand how to wrote the bind. more so for a new user.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Jan 08, 2003 6:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2003-01-08T18:11:07-04:00</updated>

		<published>2003-01-08T18:11:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15040#p15040</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15040#p15040"/>
		<title type="html"><![CDATA[hmmm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15040#p15040"><![CDATA[
why always a * bind? isnt a modular check not faster than a tcl if? by the way this way its only one if... i know, it doesnt matter at all, but teoretically it saves CPU time <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">. and i would recommed using pushmode to make the bot aviable to put multible modes into one line.<div class="codebox"><p>Code: </p><pre><code>bind join - "#wwwarez \[WWW\]*" warezjoinvoiceproc warezjoinvoice {nick host hand chan} {  pushmode $chan +v $nick}</code></pre></div>btw. tcl-commds.doc is a nice thing to read... not to say RTFM <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=2382">De Kus</a> — Wed Jan 08, 2003 6:11 pm</p><hr />
]]></content>
	</entry>
	</feed>
