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

	<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>2001-12-05T11:25:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-12-05T11:25:00-04:00</updated>

		<published>2001-12-05T11:25:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2467#p2467</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2467#p2467"/>
		<title type="html"><![CDATA[putquick?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2467#p2467"><![CDATA[
the best way is to just drop the command, if the user is allready OP.<br><br>I have note seen any guides, properly defining when you should use split.<br><div class="codebox"><p>Code: </p><pre><code>proc test {nick uh hand chan arg} {</code></pre></div>nic, uh, hand, chan and are all strings.<br>You are not suposed to use list commands (lindex, llength, lsearch, lreplace, lappend) on strings.<br><br>You may find it simple to use "lindex" to extract a word from a string, but it's bad programing to.<br><br>2 commands, "split" &amp; "join", are responsible for converting between the 2 formats.<br><br>the simplest thing to do, is to add<div class="codebox"><p>Code: </p><pre><code>set arg [split $arg]</code></pre></div>to the begining of your proc (if arg is used in the "proc" definition).<br><br>This will make sure you are using the list commands, on a list, rather than a string.<br><br>&lt;font size=-1&gt;[ This Message was edited by: ppslim on 2001-12-05 08:41 ]&lt;/font&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Dec 05, 2001 11:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-05T11:09:00-04:00</updated>

		<published>2001-12-05T11:09:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2465#p2465</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2465#p2465"/>
		<title type="html"><![CDATA[putquick?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2465#p2465"><![CDATA[
Ok, thanks ppslim <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br><br>By the way, can you kindly tell me where can I learn about the split, llength etc? I would like to know more about it.<br><br>Next, I've got a problem. There's a command known as 'isop' in TCL which will return 1 if the user has chop in channel and return 0 when it does not have chop. Let's say a user is already OP on the channel, and I had already voice the user, but, I used !voice &lt;nick&gt; again. Is there anyway to display a Syntax error? Just like the previous !op and !kick script?<br><br>Thanks<p>Statistics: Posted by Guest — Wed Dec 05, 2001 11:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-12-05T10:48:00-04:00</updated>

		<published>2001-12-05T10:48:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2463#p2463</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2463#p2463"/>
		<title type="html"><![CDATA[putquick?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2463#p2463"><![CDATA[
yes.<br><br>"putdccraw" allows scripters to output directly (Monopoly talk: Do not pass queue, go directly to socket) to a socket.<br><br>"putdcc" is used to output information to a partyline user.<br><br>Allthough both use sockets. putdcc is designed for more general use, where putdccraw is used on rare occasions.<br><br>In reality, "putdccraw" should not be used to output information intended for casual display of information on IRC (as your intention is), nor whould it be used for multiple lines of text. The "putdccraw" command will output the data sent to it, as fast as your script can give it, this is why it is likely to flood you off.<br><br>It is best to continue using the queue system, no matter how slow.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Dec 05, 2001 10:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-05T10:36:00-04:00</updated>

		<published>2001-12-05T10:36:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2461#p2461</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2461#p2461"/>
		<title type="html"><![CDATA[putquick?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2461#p2461"><![CDATA[
Err, can i know more about the server socket? Is there a difference between putdccraw and putdcc?<br><br>Thanks<p>Statistics: Posted by Guest — Wed Dec 05, 2001 10:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-12-05T08:28:00-04:00</updated>

		<published>2001-12-05T08:28:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2459#p2459</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2459#p2459"/>
		<title type="html"><![CDATA[putquick?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2459#p2459"><![CDATA[
putdccraw has a shortcut. Using an idx of "0" will send it to the server.<br><br>Note, you will responsible for adding a newline char to the message, as well as calculating the size of the message, including the newline.<br><br>&lt;font size=-1&gt;[ This Message was edited by: ppslim on 2001-12-05 05:30 ]&lt;/font&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Dec 05, 2001 8:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-05T08:07:00-04:00</updated>

		<published>2001-12-05T08:07:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2458#p2458</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2458#p2458"/>
		<title type="html"><![CDATA[putquick?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2458#p2458"><![CDATA[
try "putdccraw &lt;idx&gt; &lt;size&gt; &lt;text&gt;"<br>...of course you'll need to find the idx of the server socket first to use this to send stuff to the server...and you also need to know the length of the string.<br><br>(the server idx: lindex [lindex [dcclist server] 0] 0)<p>Statistics: Posted by Guest — Wed Dec 05, 2001 8:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-12-05T08:00:00-04:00</updated>

		<published>2001-12-05T08:00:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2456#p2456</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2456#p2456"/>
		<title type="html"><![CDATA[putquick?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2456#p2456"><![CDATA[
You could, but will more than likely flood the bot off.<br><br>There is a command to bypass the queue, but if there are items in the queue, it will not stop them from being output, leaving the problem of the bot being able to flood off.<br><br>isntead of <div class="codebox"><p>Code: </p><pre><code>puthelp "NOTICE $nick :Welcome to #abc"</code></pre></div>use<div class="codebox"><p>Code: </p><pre><code>set q "NOTICE $nick :Welcome to #abc"putdccraw 0 [string length [expr $q + 1]] "${q}n"</code></pre></div>As I warned, this should flood you off.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Dec 05, 2001 8:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-05T05:11:00-04:00</updated>

		<published>2001-12-05T05:11:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2451#p2451</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2451#p2451"/>
		<title type="html"><![CDATA[putquick?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2451#p2451"><![CDATA[
I've this question.<br><br>Let's take for example this:<blockquote class="uncited"><div>bind pub - !info pub:info<br>proc pub:info {nick uhost hand chan text} {<br>  puthelp "NOTICE $nick :Welcome to #abc"<br>  puthelp "NOTICE $nick :Enjoy yourself here"<br>  puthelp "NOTICE $nick :For more infomation,<br>  puthelp "NOTICE $nick :visit <a href="http://www.a.com" class="postlink">http://www.a.com</a>"<br>}</div></blockquote>Notice I used 'puthelp' to queue the text. The question is, is there anyway I can make all the text display at once? Instead of queueing the text?<br><br>Thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by Guest — Wed Dec 05, 2001 5:11 am</p><hr />
]]></content>
	</entry>
	</feed>
