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

	<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>2008-06-21T15:28:43-04:00</updated>

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

		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2008-06-21T15:28:43-04:00</updated>

		<published>2008-06-21T15:28:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83678#p83678</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83678#p83678"/>
		<title type="html"><![CDATA[multi cmdchars]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83678#p83678"><![CDATA[
As I told you, you can't do it like that.<br>You will either have to set multiple binds, or create a <strong class="text-strong">pubm</strong> bind to match against * and parse the text inside the proc.  Both have their benefits and fallbacks.  Multiple binds means, well, multiple bindings (which isn't a bad thing unless you create a million binds, so I don't know why you wouldn't want this).  A pubm bound procedure would have to process all text in a channel, which isn't too efficient.<br><br>So again... I repeat to you the solution I posted above, commented:<br><div class="codebox"><p>Code: </p><pre><code># Set below the characters you wish to use prior to your command# ie: 1) !command 2) .command 3)`commandset cmdchars ".!`"# now we will set up the bindings based on that information provided above, you don't need to edit this partforeach cmdchar [split $cmdchars ""] {  bind pub - ${cmdchar}say pub:say}#done</code></pre></div>This does exactly what you ask, despite how many times you say it isn't what you are asking.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat Jun 21, 2008 3:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[edu]]></name></author>
		<updated>2008-06-21T15:23:56-04:00</updated>

		<published>2008-06-21T15:23:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83677#p83677</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83677#p83677"/>
		<title type="html"><![CDATA[multi cmdchars]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83677#p83677"><![CDATA[
so, let me explain it again.. more clearly.. (I hope)<br><br>I want to make this script that has a lot of binds, and I want to use more cmdchars, for this reason I want to make this proc <strong class="text-strong">[cmd]</strong> and set more binds, like:<div class="codebox"><p>Code: </p><pre><code>bind pub -|- [cmd]say proc_saybind pub -|- [cmd]die proc_die</code></pre></div>and so on..<br><br>I dont want to set 3 times the same thing..<br><br>help me if you can, thank you &amp; for your time.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8324">edu</a> — Sat Jun 21, 2008 3:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2008-06-21T14:58:47-04:00</updated>

		<published>2008-06-21T14:58:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83676#p83676</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83676#p83676"/>
		<title type="html"><![CDATA[multi cmdchars]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83676#p83676"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>bind pub -|- !say pub:say bind pub -|- .say pub:say bind pub -|- `say pub:say </code></pre></div></div></blockquote>That's what my code above did.  He doesn't want that apparently.<br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat Jun 21, 2008 2:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-06-21T14:27:34-04:00</updated>

		<published>2008-06-21T14:27:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83675#p83675</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83675#p83675"/>
		<title type="html"><![CDATA[multi cmdchars]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83675#p83675"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub -|- !say pub:say bind pub -|- .say pub:say bind pub -|- `say pub:say </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Sat Jun 21, 2008 2:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[edu]]></name></author>
		<updated>2008-06-21T13:21:27-04:00</updated>

		<published>2008-06-21T13:21:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83674#p83674</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83674#p83674"/>
		<title type="html"><![CDATA[multi cmdchars]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83674#p83674"><![CDATA[
you dont get it -- I'll make it with only one cmdchar<br><br>Thanks anyway<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8324">edu</a> — Sat Jun 21, 2008 1:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2008-06-21T10:14:32-04:00</updated>

		<published>2008-06-21T10:14:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83671#p83671</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83671#p83671"/>
		<title type="html"><![CDATA[multi cmdchars]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83671#p83671"><![CDATA[
You can't do what you are trying to do that way.  What []'s do is evaluate a command immediately.  For example:<br><div class="codebox"><p>Code: </p><pre><code>proc test {} {  return "moo boo who"}bind pub - "[test]unf" proc:unf</code></pre></div>This will cause the pub event to be bound to "moo boo who".<br>ie. To trigger the proc, you would have to say in a channel:<br><br>&lt;user&gt; moo boo whounf<br><br><strong class="text-strong">NOT</strong> "moounf" or "boounf" or "whounf"<br><br>You will need to create multiple bindings as I just provided you the code for, or you will need to bind a pubm to * and check inside the proc itself.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat Jun 21, 2008 10:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[edu]]></name></author>
		<updated>2008-06-21T04:25:33-04:00</updated>

		<published>2008-06-21T04:25:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83669#p83669</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83669#p83669"/>
		<title type="html"><![CDATA[multi cmdchars]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83669#p83669"><![CDATA[
I dont need it this way..<br><br>I need to make the [cmd] proc to use it, like:<br><br>proc -|- [cmd]say say_proc<br>proc -|- [cmd]die die_proc<br>etc..<br><br>and then into the "code" if $text isn't specified to do: putquick "notice $nickname :[cmd]say &lt;text&gt;"<br><br>pls help me <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=8324">edu</a> — Sat Jun 21, 2008 4:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2008-06-20T20:22:40-04:00</updated>

		<published>2008-06-20T20:22:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83665#p83665</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83665#p83665"/>
		<title type="html"><![CDATA[multi cmdchars]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83665#p83665"><![CDATA[
I think more of what you are after is this:<br><div class="codebox"><p>Code: </p><pre><code>set cmdchars ".!`"foreach cmdchar [split $cmdchars ""] {  bind pub - ${cmdchar}say pub:say}</code></pre></div>and then your proc...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Fri Jun 20, 2008 8:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[edu]]></name></author>
		<updated>2008-06-20T20:11:40-04:00</updated>

		<published>2008-06-20T20:11:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83664#p83664</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83664#p83664"/>
		<title type="html"><![CDATA[multi cmdchars]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83664#p83664"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set cmdchar ". ! `"proc cmd { } {global cmdcharforeach cmd_char $cmdchar {return $cmd_char}}bind pub -|- [cmd]say pub:sayproc pub:say {nickname hostname handle channel text} {global cmdset text [split $text]        if {$text == ""} {            putquick "NOTICE $nickname :syntax: [cmd]say &lt;text&gt;"            return       }putquick "PRIVMSG $channel :$text"}</code></pre></div>how can I make this script to work when I type .say &lt;text&gt; / !say &lt;text&gt; or `say &lt;text&gt; -- and if no "text" is specified to return .say &lt;text&gt; / !say &lt;text&gt; or `say &lt;text&gt;<br><br>Thank you, please help me.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8324">edu</a> — Fri Jun 20, 2008 8:11 pm</p><hr />
]]></content>
	</entry>
	</feed>
