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

	<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>2004-10-04T09:45:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-10-04T09:45:59-04:00</updated>

		<published>2004-10-04T09:45:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41542#p41542</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41542#p41542"/>
		<title type="html"><![CDATA[for, puthelp queue problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41542#p41542"><![CDATA[
sorry for the delay i've tried out the stuff and it came out quite well. thanks for the help.<br>peace \/<p>Statistics: Posted by Guest — Mon Oct 04, 2004 9:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-09-25T23:21:46-04:00</updated>

		<published>2004-09-25T23:21:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41227#p41227</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41227#p41227"/>
		<title type="html"><![CDATA[for, puthelp queue problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41227#p41227"><![CDATA[
If you have elements that are duplicates, your eggdrop may be stripping them from server queues... There is a setting that you need to change in your eggdrop's config file to allow for the sending of duplicate lines to server.... So, I suggest you read your eggdrop's config file.<br><br>(ps. instead of walking an entire list using "for" it is more efficient to use "foreach")<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat Sep 25, 2004 11:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-09-24T13:13:22-04:00</updated>

		<published>2004-09-24T13:13:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41186#p41186</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41186#p41186"/>
		<title type="html"><![CDATA[for, puthelp queue problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41186#p41186"><![CDATA[
Give this a try<div class="codebox"><p>Code: </p><pre><code>set maxrnd ""bind pub * "!test" testproc test {nick host hand chan text} { global maxrnd  if {[lindex [split $text] 0] == "paste" } {    for {set i 0} {$i &lt; [ llength $maxrnd ] } {incr i} {      puthelp "PRIVMSG $chan :[lindex [join $maxrnd] $i]"    }  } else {    lappend maxrnd [lrange $text 0 end]        } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Fri Sep 24, 2004 1:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-09-24T12:51:26-04:00</updated>

		<published>2004-09-24T12:51:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41184#p41184</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41184#p41184"/>
		<title type="html"><![CDATA[for, puthelp queue problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41184#p41184"><![CDATA[
no, no errors no nothing ... putlog displays everything but puthelp, putserv etc. only some of the stuff<br>and when i see the queue size its only 2 .....<br>ou and i use puthelp cous its the slowest.<br>i've replaced the append with lappend but still no changes.<br>Help <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>--------------------------------------<br>edit<br>--------------------------------------<br>okay i've removed puthelp and replaced it with <br>hte msg and putdccraw functions you've write <br>and it works, but its quite fast which will get an excess flood on most of the servers so i really hope there is a solution to the puthelp, put serv problem<p>Statistics: Posted by Guest — Fri Sep 24, 2004 12:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-24T06:30:33-04:00</updated>

		<published>2004-09-24T06:30:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41171#p41171</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41171#p41171"/>
		<title type="html"><![CDATA[for, puthelp queue problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41171#p41171"><![CDATA[
- Why don't you use lappend instead of append at first, it is a better way to deal with lists.<br>- Whenever you are using '==' use [string equal -nocase $var1 $var2]<br>- Do not use 'args' as a variable. In TCL args is a special reserved variable for lists.<br><br>As for your problem now, first of all check your bots queue:<br><blockquote class="uncited"><div>queuesize [queue] <br>Returns: the number of messages in all queues. If a queue is specified, only the size of this queue is returned. Valid queues are: mode, server, help</div></blockquote>This will not show you whats in the queue but it will show you the number of things that are in the queue. What you can basically do here is, clear the queue with the 'CLEARQUEUE &lt;queue&gt;' command (see tcl-commands.doc) and then go ahead and perform your script by triggering !test and then check the queue size of the respective queue.<br><br>If you are using puthelp see the help queue, if server see the putserv queue and so on...<br><br>Puthelp by the way, is the most slowest way to send data. Normally it is 1 second per line also if that line doesn't exceed a certain length. If your list is quite big, then puthelp will delay queues further in time so the bot doesn't get flood off the client server. Basically puthelp is used for very larger and slower data outputs.<br><br>The normal queue is putserv, though with the -next it is quite effective and then putquick; putquick with -next is no doubtedly the fastest. Though putdccraw can also be another option (undocumented queue).<br>For your case it would be:<br><div class="codebox"><p>Code: </p><pre><code>set msg "PRIVMSG $chan :[lindex $maxrnd $i]\n"putdccraw 0 [string length $msg] $msg</code></pre></div>I don't see why puthelp won't display the list. If your loop is executing fine and you have set its limits and incr accordingly so if you get output results in putlog, the bot should definately display the output no matter whatever queue you use. Do you get any tcl error? tclhash or something?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri Sep 24, 2004 6:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-09-24T04:31:09-04:00</updated>

		<published>2004-09-24T04:31:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41166#p41166</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41166#p41166"/>
		<title type="html"><![CDATA[for, puthelp queue problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41166#p41166"><![CDATA[
hello, i've been having problems with the queueing (or atleast i think so) of the puthelp, putserv, putquick commands (except putlog).<br>I have a list with N number of items and when i tell the script to post them to the screen i get only the first and last line, but when i replace puthelp,putserv with putlog i see that the list is correct, so i guess the problem is with the queueing of these functions.<br><br><br>Here is the procedure i've created:<br><div class="codebox"><p>Code: </p><pre><code>set maxrnd "" bind pub * "!test" testproc test { nick host hand chan args } {  global maxrnd  append args \n  append maxrnd $args  if { $args == "paste\n" } { # if the args are paste\n then display the list    for {set i 0} {$i &lt; [ llength $maxrnd ] } {incr i} {      puthelp "PRIVMSG $chan : [lindex $maxrnd $i ]"      # putlog "PRIVMSG $chan : [lindex $maxrnd $i ]"    }  }  return 0}</code></pre></div>so basicly the procedure adds a row every time i write:<br>!test &lt;blabla&gt;<br>but when i write:<br>!test paste <br>it displays the list, or atleast it should be....<br>When i comment the puthelp line and uncomment the putlog line<br>i see in the bot dcc window that every row is displayed .... but with the puthelp command only the first and last one.<br>So my question is how do i fix this????????  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"><p>Statistics: Posted by Guest — Fri Sep 24, 2004 4:31 am</p><hr />
]]></content>
	</entry>
	</feed>
