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

	<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-12-30T20:58:49-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-12-30T20:58:49-04:00</updated>

		<published>2002-12-30T20:58:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14723#p14723</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14723#p14723"/>
		<title type="html"><![CDATA[command prefix]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14723#p14723"><![CDATA[
<blockquote class="uncited"><div>hm, actually that means that people can use ANY command prefix they like in the channel, ie, @authaddop and !authaddop both work no-matter what the setting in the file is.</div></blockquote>There is no way this is happening. Have you tried it?<br><br>As noted, you should use the ${cmdprefix} method.<br><br>However, to correct some facts, there is simply no way possible for what you say above to occur.<br><br>Take a look at the following code<br><div class="codebox"><p>Code: </p><pre><code>set p "!"bind pub - [string trim $p]test test:test</code></pre></div>First, the pub bind does not accept masks or wildcards (pubm does). So what ever is placed in the mask field, has to be fully matched, without any wildcard processing. This leaves the single option of only one command possible.<br><br>While the $p and the "string trim" command are processed dynamicly, they are only called once, and thus produce static content. This means that after Tcl has run "[string trim $p]" once, it doesn't call it each time it tries to match somthing.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Dec 30, 2002 8:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2002-12-30T20:51:21-04:00</updated>

		<published>2002-12-30T20:51:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14721#p14721</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14721#p14721"/>
		<title type="html"><![CDATA[command prefix]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14721#p14721"><![CDATA[
You are having TCL do more work than it should have to.  That being, a substitution and then processing of a command (O(2)), when all that is needed is a substitution (O(1)).  It isn't much of a difference in all actuality, but for the sake of efficiency:<br><div class="codebox"><p>Code: </p><pre><code>bind pub - ${cmdprefix}authaddop pub_authaddop</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Mon Dec 30, 2002 8:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-12-30T19:27:03-04:00</updated>

		<published>2002-12-30T19:27:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14718#p14718</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14718#p14718"/>
		<title type="html"><![CDATA[command prefix]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14718#p14718"><![CDATA[
yeah... sorry.. I was not thinking <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">... good thing you figured it out <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Mon Dec 30, 2002 7:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonbell]]></name></author>
		<updated>2002-12-30T19:11:09-04:00</updated>

		<published>2002-12-30T19:11:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14717#p14717</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14717#p14717"/>
		<title type="html"><![CDATA[command prefix]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14717#p14717"><![CDATA[
i have fixed it by using [string index $cmdprefix 0]<br><br>thanks for your help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1696">simonbell</a> — Mon Dec 30, 2002 7:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonbell]]></name></author>
		<updated>2002-12-30T19:03:31-04:00</updated>

		<published>2002-12-30T19:03:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14716#p14716</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14716#p14716"/>
		<title type="html"><![CDATA[command prefix]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14716#p14716"><![CDATA[
hm, actually that means that people can use ANY command prefix they like in the channel, ie, @authaddop and !authaddop both work no-matter what the setting in the file is.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1696">simonbell</a> — Mon Dec 30, 2002 7:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-12-30T18:40:57-04:00</updated>

		<published>2002-12-30T18:40:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14715#p14715</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14715#p14715"/>
		<title type="html"><![CDATA[command prefix]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14715#p14715"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - [string trim $cmdprefix]authaddop pub_authaddop</code></pre></div>that should do it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Mon Dec 30, 2002 6:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonbell]]></name></author>
		<updated>2002-12-30T16:28:40-04:00</updated>

		<published>2002-12-30T16:28:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14710#p14710</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14710#p14710"/>
		<title type="html"><![CDATA[command prefix]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14710#p14710"><![CDATA[
I want to give the option to choose there own prefix in a separate settings file, using<br><blockquote class="uncited"><div>set cmdprefix "!"</div></blockquote> <br><br>for example<br><br>then matching it to pub binds as such<br><blockquote class="uncited"><div>bind pub - $cmdprefixauthaddop pub_authaddop</div></blockquote>the problem is that the bot appears to think that "$cmdprefixauthaddop is one single global variable instead of just $cmdprefix<br><br>How do i get eggdrop to recognise the separation?<br><br>Simon<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1696">simonbell</a> — Mon Dec 30, 2002 4:28 pm</p><hr />
]]></content>
	</entry>
	</feed>
