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

	<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-05-23T08:40:09-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-05-23T08:40:09-04:00</updated>

		<published>2003-05-23T08:40:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20558#p20558</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20558#p20558"/>
		<title type="html"><![CDATA[&quot;Eating&quot; duplicate lines &amp; putquick is slow]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20558#p20558"><![CDATA[
<blockquote class="uncited"><div>Actually below is the correct code <div class="codebox"><p>Code: </p><pre><code>set text "PRIVMSG nick :This is a test" putdccraw 0 [string length $text] $text</code></pre></div></div></blockquote>Add a \n to the end of that text <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=2878">user</a> — Fri May 23, 2003 8:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Squirre1]]></name></author>
		<updated>2003-05-23T05:03:48-04:00</updated>

		<published>2003-05-23T05:03:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20537#p20537</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20537#p20537"/>
		<title type="html"><![CDATA[&quot;Eating&quot; duplicate lines &amp; putquick is slow]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20537#p20537"><![CDATA[
Actually below is the correct code <br><div class="codebox"><p>Code: </p><pre><code>set text "PRIVMSG nick :This is a test" putdccraw 0 [string length $text] $text</code></pre></div>The string size has to be defined before the text... But anyway.. This still does not work.. It only pipes out about 6 lines and then goes to being controlled by the queue again. almost like a putquick.<br><br>There needs to be an optional switch in the config where we can select to use the queue or not be forced to use the queue.<br><br>set use_output_queue 1/0<br><br>Something like that.<br><br>Another thing is that only one person can call the bind at a time, meaning the output is queued in the order it was received.<br><br>If person 1 does a !senddata, then person 2, and finally person 3. All the data has to be sent to person 1 before person 2 will get anything, and then finish before person 3 gets anything. If you could make a output queue per nick that the data is being transfered to, the queue system would not be so bad.<br><br>I think it needs some major improvements.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1603">Squirre1</a> — Fri May 23, 2003 5:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-04-25T07:50:03-04:00</updated>

		<published>2003-04-25T07:50:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19410#p19410</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19410#p19410"/>
		<title type="html"><![CDATA[&quot;Eating&quot; duplicate lines &amp; putquick is slow]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19410#p19410"><![CDATA[
The queues are there to protect your bot from ebing flooded off.<br><br>From the looks of the information you wish to post, it would be flooded off rather quick and easily, and I would sugest flood protection (on the script) if you wish to continue.<br><br>All the queues are subject to this delay system, yet some more than others. puthelp is there for text dumps like yours, and only sends 1 per second at all, and that is only if the other queues are empty.<br><br>I can't remember which, but some some will fast de-queue messages (so long as the setting is eneabled (see config file)) up to a point, then start releasing upto 1 per second.<br><br>You can use the undocumented putdccraw command to output information. This bypasses all queues and storage, and is snt direct to the socket.<br><div class="codebox"><p>Code: </p><pre><code>putdccraw &lt;idx&gt; &lt;string&gt; &lt;length&gt;</code></pre></div>You can send embeded NULLS with putdccraw, so you need to give it a length of the text to send.<br><br>IDX is the same as the partyline IDX, yet you can use 0 for the currently connected IRC server.<br><div class="codebox"><p>Code: </p><pre><code>set text "PRIVMSG nick :This is a test"putdccraw 0 $text [string length $text]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Fri Apr 25, 2003 7:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-04-25T05:48:18-04:00</updated>

		<published>2003-04-24T21:04:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19392#p19392</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19392#p19392"/>
		<title type="html"><![CDATA[SOLUTION + FOLLOW-UP QUESTIONS]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19392#p19392"><![CDATA[
<strong class="text-strong">SOLUTION to the first problem:</strong><br>Thanks for the reply, but I searched before, and I did it now again...<br>But now I searched for 'repeat' instead of trying to search for 'duplicate', so I finally found:<br># Allow identical messages in the mode queue?<br>set double-mode 0<br> # Allow identical messages in the server queue?<br>set double-server 0<br> # Allow identical messages in the help queue?<br>set double-help 0<br><br><strong class="text-strong">FOLLOWUP-1:</strong><br>It seems like putquick is affected by the double-mode setting, or?<br><br><strong class="text-strong">FOLLOWUP-2:</strong><br>why is putquick so slow? 1-2 seconds per line.<br>I thought it was supposed to bypass the queue.<br>Can I speed it up somehow?<br>And can I speed up the putserv and puthelp too?<p>Statistics: Posted by Guest — Thu Apr 24, 2003 9:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-04-24T18:26:08-04:00</updated>

		<published>2003-04-24T18:26:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19387#p19387</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19387#p19387"/>
		<title type="html"><![CDATA[&quot;Eating&quot; duplicate lines &amp; putquick is slow]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19387#p19387"><![CDATA[
Please try searching the forum before posting.<br><br>There are entries in the config file, allowing for duplicate entries in the queue.<br><br>Eggdrop, by default, kills duplicates, to prevent flooding and unneeded traffic.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Apr 24, 2003 6:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-04-25T05:55:21-04:00</updated>

		<published>2003-04-24T16:17:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19383#p19383</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19383#p19383"/>
		<title type="html"><![CDATA[&quot;Eating&quot; duplicate lines &amp; putquick is slow]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19383#p19383"><![CDATA[
Hi!<br><br>This simple script executes a binary and just tries to output the result.<br>BUT the second and third "--------------" lines are never displayed!? Why?<br><br>I guess it's either Eggdrop or the ircd that removes 'duplicate lines', or what?<br>What's the critieria for detecting 'duplicate lines'?<br>How can I change this behaviour?<br><br>I have seen work-arounds by other people, like adding a unique color code to the end f the line with \003xx where xx is a number that gets increased for each line.<br>But I would like to understand how all this works, before making work-arounds...  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"> <br><br>This is my first real script, so please help me...  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br><div class="codebox"><p>Code: </p><pre><code>set outchan "#test"set binary(REQUESTSHOW) "/glftpd/bin/requestshow" proc killalltimers {} { foreach ut [utimers] { killutimer [lindex $ut 2] } }killalltimers proc requestshow { } {  global binary  global outchan  utimer 150 requestshow  putserv "NOTICE $outchan :                              Current requests"  putserv "NOTICE $outchan :------------------------------------------------------------------------"  putserv "NOTICE $outchan :UserName -&gt; Request"  putserv "NOTICE $outchan :------------------------------------------------------------------------"  foreach line [split [exec $binary(REQUESTSHOW)] \n] {    putserv "NOTICE $outchan :$line"  }  putserv "NOTICE $outchan :------------------------------------------------------------------------"}utimer 150 requestshow</code></pre></div><strong class="text-strong">BTW:</strong><br>Eggdrop = 1.6.13<br>ircd = latest undernet ircd<br>Everything running on Debian Linux.<p>Statistics: Posted by Guest — Thu Apr 24, 2003 4:17 pm</p><hr />
]]></content>
	</entry>
	</feed>
