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

	<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>2005-01-16T16:11:30-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2005-01-16T16:11:30-04:00</updated>

		<published>2005-01-16T16:11:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45447#p45447</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45447#p45447"/>
		<title type="html"><![CDATA[correct use of 'bind mode']]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45447#p45447"><![CDATA[
i think you could do this as well<br><div class="codebox"><p>Code: </p><pre><code>bind mode o|o "* -o" command</code></pre></div>id say thats a pretty right way to use it .. the bind that is..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Jan 16, 2005 4:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2005-01-16T14:17:03-04:00</updated>

		<published>2005-01-16T14:17:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45446#p45446</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45446#p45446"/>
		<title type="html"><![CDATA[correct use of 'bind mode']]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45446#p45446"><![CDATA[
silly me<br><br>yeh the op/deop works but it cant devoice if it doesnt have ops<br><br>I'll just go crawl down a hole somewhere<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Sun Jan 16, 2005 2:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2005-01-16T13:23:32-04:00</updated>

		<published>2005-01-16T13:23:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45445#p45445</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45445#p45445"/>
		<title type="html"><![CDATA[correct use of 'bind mode']]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45445#p45445"><![CDATA[
works for me. try adding a "flushmode $chan" (shouldnt really be needed)<br>or use putserv "MODE $chan -o $victim" instead of pushmode<br><br>as for devoicing itself when it wont allow itself to be opped, that wont work unless it's halfopped (or some other funky stuff)<br><br>edit: speelingg broken<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Sun Jan 16, 2005 1:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2005-01-16T13:11:18-04:00</updated>

		<published>2005-01-16T13:11:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45444#p45444</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45444#p45444"/>
		<title type="html"><![CDATA[correct use of 'bind mode']]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45444#p45444"><![CDATA[
Thanks avilon/spock. Incorperated your 2 suggestions and dont get an error now. Howeverr, whilst the channel message is displayed, the demotion doesn't occur.<br><br>bind MODE - * pDemote<br><br>proc pDemote {nick uhost hand chan mode victim} {<br>    global botnick<br>    if {[isbotnick $victim] &amp;&amp; $mode == "+o"} {<br>        pushmode $chan -o $botnick<br>        putserv "PRIVMSG $chan :Please don't Op me, I'm not experienced enough"<br>    }<br>    if {[isbotnick $victim] &amp;&amp; $mode == "+v"} {<br>        pushmode $chan -v $botnick<br>        putserv "PRIVMSG $chan :Please don't Voice me, I find it a bit scary"<br>    }<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Sun Jan 16, 2005 1:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[avilon]]></name></author>
		<updated>2005-01-16T14:24:42-04:00</updated>

		<published>2005-01-16T12:55:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45442#p45442</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45442#p45442"/>
		<title type="html"><![CDATA[correct use of 'bind mode']]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45442#p45442"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {[isbotnick $victim] &amp;&amp; ($mode == "+o")} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5191">avilon</a> — Sun Jan 16, 2005 12:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2005-01-16T12:53:11-04:00</updated>

		<published>2005-01-16T12:53:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45441#p45441</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45441#p45441"/>
		<title type="html"><![CDATA[correct use of 'bind mode']]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45441#p45441"><![CDATA[
$var == "whatever"    &lt;- note the ""<br><br>other than that, i would suggest using [isbotnick $victim]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Sun Jan 16, 2005 12:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2005-01-16T12:04:06-04:00</updated>

		<published>2005-01-16T12:04:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45440#p45440</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45440#p45440"/>
		<title type="html"><![CDATA[correct use of 'bind mode']]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45440#p45440"><![CDATA[
I've made a pretty stupid mistake, I know it. Cant get this to work though<br><br>bind MODE - * pDemote<br><br>proc pDemote {nick uhost hand chan mode victim} {<br>    global botnick<br>    if {$victim == $botnick &amp;&amp; $mode == +o} {<br>        pushmode $chan -o $botnick<br>        putserv "PRIVMSG $chan :Please don't Op me, I'm not experienced enough"<br>    }<br>    if {$victim == $botnick &amp;&amp; $mode == +v} {<br>        pushmode $chan -v $botnick<br>        putserv "PRIVMSG $chan :Please don't Voice me, I find it a bit scary"<br>    }<br>}<br><br>I get<br><br>Tcl error [pDemote]: syntax error in expression "$victim == $botnick &amp;&amp; $mode == +o": variable references require preceding $<br><br>I just cant see the error<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Sun Jan 16, 2005 12:04 pm</p><hr />
]]></content>
	</entry>
	</feed>
