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

	<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-10-19T02:09:26-04:00</updated>

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

		<entry>
		<author><name><![CDATA[eggdropout]]></name></author>
		<updated>2005-10-19T02:09:26-04:00</updated>

		<published>2005-10-19T02:09:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56703#p56703</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56703#p56703"/>
		<title type="html"><![CDATA[Need help with user defined flags]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56703#p56703"><![CDATA[
that worked  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"> <br><br>thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6866">eggdropout</a> — Wed Oct 19, 2005 2:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-10-18T04:20:35-04:00</updated>

		<published>2005-10-18T04:20:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56685#p56685</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56685#p56685"/>
		<title type="html"><![CDATA[Need help with user defined flags]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56685#p56685"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>foreach chan [channels] { if {[channel get $chan flag]} {  puthelp "privmsg $chan :message" }}</code></pre></div>and to not msg the channel where the command came from, simple add<div class="codebox"><p>Code: </p><pre><code> &amp;&amp; ![string equal -nocase $channel $chan]</code></pre></div> in the if statement where $channel is the chan where the trigger was issued (from the pub bind). If you use !quote then (logically) pub:quote was triggered.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Oct 18, 2005 4:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eggdropout]]></name></author>
		<updated>2005-10-17T19:59:38-04:00</updated>

		<published>2005-10-17T19:59:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56684#p56684</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56684#p56684"/>
		<title type="html"><![CDATA[Need help with user defined flags]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56684#p56684"><![CDATA[
Hi everyone,<br><br>I got a couple of questions I need answers to.<br><br>1. How to PRIVMSG all channels that have a certain user defined flag set to them? I know how to check if a trigger has come from a channel with a certain flag within a procedure:<div class="codebox"><p>Code: </p><pre><code>    if { ![channel get $channel some_flag] } { return 0 }</code></pre></div> but not how to PRIVMSG all chans that have a certain flag. And even more advanced, how to PRIVMSG all chans that have a certain flag except for the chan where the trigger came from (if, of course, this source chan has also been set with the same user defined flag)<br><br>2. I know its possible to use a couple of pub binds for one and the same procedure. Like this:<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !quote pub:quotebind pub - !qt pub:quotebind pub - !addquote pub:quote</code></pre></div>That's good, but how do I know (within the procedure) the specific bind that triggered it? In this case, was it !quote or !addquote or !qt?<br><br>Thats all guys, hope some of you will be able to answer. I searched through the forum and examined a couple of tcl scripts, but couldnt find what im looking for. <br><br>Thanks in advance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6866">eggdropout</a> — Mon Oct 17, 2005 7:59 pm</p><hr />
]]></content>
	</entry>
	</feed>
