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

	<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-05-07T17:43:47-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Nimos]]></name></author>
		<updated>2008-05-07T17:43:47-04:00</updated>

		<published>2008-05-07T17:43:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82797#p82797</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82797#p82797"/>
		<title type="html"><![CDATA[&quot;anti&quot;-flags?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82797#p82797"><![CDATA[
sure<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9877">Nimos</a> — Wed May 07, 2008 5:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-05-07T17:22:22-04:00</updated>

		<published>2008-05-07T17:22:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82794#p82794</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82794#p82794"/>
		<title type="html"><![CDATA[&quot;anti&quot;-flags?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82794#p82794"><![CDATA[
<blockquote class="uncited"><div>and if the joining person is not registered in the bot?<br><br>wouldnt it be better to use<br><br>if not {![matchattr * B]} {action}<br><br>is there an "if not" funktion in tcl?</div></blockquote>sure, your already using it.<div class="codebox"><p>Code: </p><pre><code>if {[matchattr $hand B]} { #matches do stuff }if {![matchattr $hand B]} { #no matches do stuff }</code></pre></div>This is assuming you use the variable name $hand in association with the handle passed to the proc by the binding.<div class="codebox"><p>Code: </p><pre><code>proc join:voice-check {nick host hand chan} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Wed May 07, 2008 5:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nimos]]></name></author>
		<updated>2008-05-07T17:00:18-04:00</updated>

		<published>2008-05-07T17:00:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82790#p82790</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82790#p82790"/>
		<title type="html"><![CDATA[&quot;anti&quot;-flags?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82790#p82790"><![CDATA[
and if the joining person is not registered in the bot?<br><br>wouldnt it be better to use<br><br>if not {![matchattr * B]} {action}<br><br>is there an "if not" funktion in tcl?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9877">Nimos</a> — Wed May 07, 2008 5:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2008-05-07T16:10:22-04:00</updated>

		<published>2008-05-07T16:10:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82789#p82789</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82789#p82789"/>
		<title type="html"><![CDATA[&quot;anti&quot;-flags?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82789#p82789"><![CDATA[
just make it trigger on everyone and add a <div class="codebox"><p>Code: </p><pre><code>if {![matchattr &lt;handle&gt; &lt;flags&gt;]} { do_the_thing_you_want }</code></pre></div> in the proc<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed May 07, 2008 4:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nimos]]></name></author>
		<updated>2008-05-07T16:03:49-04:00</updated>

		<published>2008-05-07T16:03:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82788#p82788</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82788#p82788"/>
		<title type="html"><![CDATA[&quot;anti&quot;-flags?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82788#p82788"><![CDATA[
no if i have<br><div class="codebox"><p>Code: </p><pre><code>bind join -B * noautovoice { </code></pre></div>it triggers if someone with +B flag joins the channel...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9877">Nimos</a> — Wed May 07, 2008 4:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-05-07T13:33:50-04:00</updated>

		<published>2008-05-07T13:33:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82780#p82780</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82780#p82780"/>
		<title type="html"><![CDATA[&quot;anti&quot;-flags?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82780#p82780"><![CDATA[
I think you should be able to use the - prefix to flags to specify that the binding should only match if the user does not have these flags.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed May 07, 2008 1:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nimos]]></name></author>
		<updated>2008-05-07T13:27:24-04:00</updated>

		<published>2008-05-07T13:27:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82778#p82778</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82778#p82778"/>
		<title type="html"><![CDATA[&quot;anti&quot;-flags?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82778#p82778"><![CDATA[
can i make a bind, which is only triggered by people NOT having a flag?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9877">Nimos</a> — Wed May 07, 2008 1:27 pm</p><hr />
]]></content>
	</entry>
	</feed>
