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

	<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>2013-02-25T08:11:54-04:00</updated>

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

		<entry>
		<author><name><![CDATA[LoKii]]></name></author>
		<updated>2013-02-25T08:11:54-04:00</updated>

		<published>2013-02-25T08:11:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101122#p101122</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101122#p101122"/>
		<title type="html"><![CDATA[Alert all chanops based on conditions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101122#p101122"><![CDATA[
Thank you very much dirty.<br><br>This indeed solved my issue (and darn, how could i not see this)  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> <br><br><br>Cheers, now I can go on with the rest <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=10917">LoKii</a> — Mon Feb 25, 2013 8:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dirty]]></name></author>
		<updated>2013-02-25T06:53:49-04:00</updated>

		<published>2013-02-25T06:53:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101121#p101121</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101121#p101121"/>
		<title type="html"><![CDATA[Alert all chanops based on conditions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101121#p101121"><![CDATA[
Your error is that you stop the script that notices ops after he finds the first one.. <br><div class="codebox"><p>Code: </p><pre><code>if {[matchattr $nick |+qd $channel]} {         foreach u [chanlist $channel] {             if {[isop $u $channel]} {                 putserv "NOTICE $u :Warning. $nick is on my Blacklist and may \002NOT\002 gain OPs or VOICE on channel $channel!"                 return 1             }         }             } else  {         return 1     } </code></pre></div>so the right thing to do is<br><div class="codebox"><p>Code: </p><pre><code>if {[matchattr $nick |+qd $channel]} {         foreach u [chanlist $channel] {             if {[isop $u $channel]} {                 putserv "NOTICE $u :Warning. $nick is on my Blacklist and may \002NOT\002 gain OPs or VOICE on channel $channel!"             }         }             }</code></pre></div>also i removed the <strong class="text-strong">else</strong> statement because it has no use<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12189">dirty</a> — Mon Feb 25, 2013 6:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LoKii]]></name></author>
		<updated>2013-02-25T05:20:21-04:00</updated>

		<published>2013-02-25T05:20:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101120#p101120</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101120#p101120"/>
		<title type="html"><![CDATA[Alert all chanops based on conditions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101120#p101120"><![CDATA[
Hello everyone, I'm trying to learn some basics in TCL, and I'm trying a simple code for an onjoin property but the results are not exactly what i hoped for.<br><br>What i want is, if a user with certain flags (in this case with flags +qd or |+qd $channel) joins the room, the bot should alert all channel operators (and maybe even halfops) that the user who entered is blacklisted and my not gain OPs or Voice.<br><br>The code I have here is:<br><div class="codebox"><p>Code: </p><pre><code>bind join - * proc_blacklistproc proc_blacklist {nick host handle channel} {    if {[matchattr $nick +qd]} {        foreach u [chanlist $channel] {            if {[isop $u $channel]} {                putserv "NOTICE $u :Warning. $nick is on my Global Blacklist and may \002NOT\002 gain OPs or VOICE on any channel that I am on!"                return 1            }        }    }    if {[matchattr $nick |+qd $channel]} {        foreach u [chanlist $channel] {            if {[isop $u $channel]} {                putserv "NOTICE $u :Warning. $nick is on my Blacklist and may \002NOT\002 gain OPs or VOICE on channel $channel!"                return 1            }        }            } else  {        return 1    }}</code></pre></div>If the bot is an OP on the channel, he will ONLY notice himself, however If i deop the bot (i am also OP on the chan), then the bot will notice me succesfully. However, if both of us (me and the bot) are opped, I never get the notice.<br><br>Any hints would be appreciated.<br><br>Cheers <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">[/code]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10917">LoKii</a> — Mon Feb 25, 2013 5:20 am</p><hr />
]]></content>
	</entry>
	</feed>
