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

	<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>2003-11-09T16:15:43-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-11-09T16:15:43-04:00</updated>

		<published>2003-11-09T16:15:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29776#p29776</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29776#p29776"/>
		<title type="html"><![CDATA[problem with bind mode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29776#p29776"><![CDATA[
ok thanks a lot ! I now works !<p>Statistics: Posted by Guest — Sun Nov 09, 2003 4:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-11-09T15:24:16-04:00</updated>

		<published>2003-11-09T15:24:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29772#p29772</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29772#p29772"/>
		<title type="html"><![CDATA[problem with bind mode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29772#p29772"><![CDATA[
<blockquote class="uncited"><div>well actually there is no lsearch in my proc... here is my proc:<div class="codebox"><p>Code: </p><pre><code>[snip]switch[snip]</code></pre></div>I get the message<br>Tcl error [modes_say]: bad option "-v": must be -exact, -glob, -regexp, or -- <br>although I am not supposed to treat the -v case... this is very odd to me.</div></blockquote>Same applies to [switch].<br><br><a href="http://www.tcl.tk/man/tcl8.4/TclCmd/switch.htm" class="postlink">http://www.tcl.tk/man/tcl8.4/TclCmd/switch.htm</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Sun Nov 09, 2003 3:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-11-09T15:13:45-04:00</updated>

		<published>2003-11-09T15:13:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29771#p29771</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29771#p29771"/>
		<title type="html"><![CDATA[problem with bind mode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29771#p29771"><![CDATA[
well actually there is no lsearch in my proc... here is my proc:<br><div class="codebox"><p>Code: </p><pre><code>proc modes_say {nick uhost hand chan mode victim} {        if {[isbotnick $victim]} {                switch $mode {                        "+o" {                        putserv "PRIVMSG $chan :Merci $nick !"                        }                        "-o" {                        putserv "PRIVMSG $chan :$nick:..."                        }                }        } else {                if {[isbotnick $nick]} {                        switch $mode {                                "+o" {                                putserv "PRIVMSG $chan :$victim: ..."                                }                                "-o" {                                putserv "PRIVMSG $chan :$victim: ..."                                }                        }                } else {                        switch $mode {                                "+o" {                                putserv "PRIVMSG $chan :$nick: ..."                                }                                "-o" {                                putserv "PRIVMSG $chan :$nick: ..."                                }                        }                }        }}</code></pre></div>I get the message<br>Tcl error [modes_say]: bad option "-v": must be -exact, -glob, -regexp, or -- <br>although I am not supposed to treat the -v case... this is very odd to me.<p>Statistics: Posted by Guest — Sun Nov 09, 2003 3:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-11-09T14:48:36-04:00</updated>

		<published>2003-11-09T14:48:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29770#p29770</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29770#p29770"/>
		<title type="html"><![CDATA[problem with bind mode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29770#p29770"><![CDATA[
<blockquote class="uncited"><div>puting<div class="codebox"><p>Code: </p><pre><code>bind mode "-" "*" modes_say</code></pre></div>or<div class="codebox"><p>Code: </p><pre><code>bind mode - * modes_say</code></pre></div>doesn't change anything...<br>But the thing is it works for the + modes and not for the - ones... I don't get why.</div></blockquote>You likely have an [lsearch] inside your proc. The minus sign of the "-o" is seen as the start of an option definition. However, "o" is not an option and so Tcl complains.<br><br>That is why there is [lsearch --]. The "--" says that no options will follow after the "--". Any following minus sign should be treated as such and not as the start of an option.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Sun Nov 09, 2003 2:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-11-09T14:41:18-04:00</updated>

		<published>2003-11-09T14:41:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29769#p29769</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29769#p29769"/>
		<title type="html"><![CDATA[problem with bind mode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29769#p29769"><![CDATA[
puting<div class="codebox"><p>Code: </p><pre><code>bind mode "-" "*" modes_say</code></pre></div>or<div class="codebox"><p>Code: </p><pre><code>bind mode - * modes_say</code></pre></div>doesn't change anything...<br>But the thing is it works for the + modes and not for the - ones... I don't get why.<p>Statistics: Posted by Guest — Sun Nov 09, 2003 2:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TALES]]></name></author>
		<updated>2003-11-09T14:31:12-04:00</updated>

		<published>2003-11-09T14:31:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29768#p29768</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29768#p29768"/>
		<title type="html"><![CDATA[could be]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29768#p29768"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind mode - * modes_say</code></pre></div> <br><br>bind mode &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br><br>could be anything dont see what the proc is ??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4104">TALES</a> — Sun Nov 09, 2003 2:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-11-09T14:21:43-04:00</updated>

		<published>2003-11-09T14:21:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29767#p29767</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29767#p29767"/>
		<title type="html"><![CDATA[problem with bind mode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29767#p29767"><![CDATA[
Hi all... i have a problem and do not exactly understand what's happening...<br><br>Here are extracts from my script:<br><div class="codebox"><p>Code: </p><pre><code>bind mode "-" "*" modes_sayproc modes_say {nick uhost hand chan mode victim} {...}</code></pre></div>Now whenever I try to intercept a +something (like +o +v...) it works flawlessly...<br><br>But when en - someting is issued (-v -o...) I get:<br><br>[19:13] Tcl error [modes_say]: bad option "-o": must be -exact, -glob, -regexp, or --<br><br>in the logs.<br><br>Any ideai ?<p>Statistics: Posted by Guest — Sun Nov 09, 2003 2:21 pm</p><hr />
]]></content>
	</entry>
	</feed>
