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

	<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-02-06T08:38:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Petersen]]></name></author>
		<updated>2002-02-06T08:38:00-04:00</updated>

		<published>2002-02-06T08:38:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4335#p4335</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4335#p4335"/>
		<title type="html"><![CDATA[using stackable operations..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4335#p4335"><![CDATA[
stackable just means that you can have more than one binding for the same trigger.<br><br>from tcl-commands.doc:<blockquote class="uncited"><div>Some bindings are marked as "stackable". That means that you can bind<br>multiple commands to the same trigger. Normally, for example, a binding<br>of 'bind msg - stop msg_stop' (which makes a msg-command "stop" call the<br>Tcl proc "msg_stop") will overwrite any previous binding you had for the<br>msg-command "stop". With stackable bindings, like 'msgm' for example,<br>you can bind to the same command or mask again and again. When the<br>binding is triggered, ALL the Tcl procs that are bound to it will be<br>called, one after another.</div></blockquote>apart from that there's nothing different between a stackable and non-stackable proc.<br><br>One thing to be careful about in stacked procs though, is that the output of one proc won't effect what another proc bound to the same trigger will do. Eggdrop might not necessarily call the procs in the order that you want. Usually its best to try and avoid stacking, and just expand the proc already bound to that keyword. There are performance issues either way though when you start introducing wildcards (eg a bind mode * and a bind mode "* +o" - which is more efficient, writing everything into the full wildcard and not using the second at all, or splitting your procs by mode? depending on the complexity of your procs, it could be either, so be sure to do some timed tests if speed is of an issue)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=60">Petersen</a> — Wed Feb 06, 2002 8:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-02-06T02:31:00-04:00</updated>

		<published>2002-02-06T02:31:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4331#p4331</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4331#p4331"/>
		<title type="html"><![CDATA[using stackable operations..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4331#p4331"><![CDATA[
how do i use this, I tried many times using procs.. etc, i am actualyl quite good at tcl for a beginner made an onjoin channel trigger kick. and was wondering what a correct syntax in tcl for thse stackable operations would be thank you very much.<br>(21) SENT   (stackable)<br>       bind sent &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>   proc-name &lt;handle&gt; &lt;nick&gt;&lt;path/to/file&gt;<br>oh yeah you guys RULE!!<br><p>Statistics: Posted by Guest — Wed Feb 06, 2002 2:31 am</p><hr />
]]></content>
	</entry>
	</feed>
