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

	<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>2017-02-10T08:51:34-04:00</updated>

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

		<entry>
		<author><name><![CDATA[COBRa]]></name></author>
		<updated>2017-02-10T08:51:34-04:00</updated>

		<published>2017-02-10T08:51:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105810#p105810</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105810#p105810"/>
		<title type="html"><![CDATA[Multiple Announce]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105810#p105810"><![CDATA[
I have a tcl script which when triggered by a keyword then announces but if the keyword is triggered more than once it multiple announces was wondering if theres a way to stop this let me give an example<br><div class="codebox"><p>Code: </p><pre><code>[12:41pm] &lt;+user1&gt; !addpre Pointstone.System.Cleaner.v7.7.32.720-LAXiTY 0DAY[12:41pm] &lt;+user2&gt; !addpre Pointstone.System.Cleaner.v7.7.32.720-LAXiTY 0DAY[12:41pm] &lt;+master&gt;  [Pointstone.System.Cleaner.v7.7.32.720-LAXiTY &gt; Already added via ADDOLD][12:41pm] &lt;+master&gt;  [Pointstone.System.Cleaner.v7.7.32.720-LAXiTY &gt; Already added via ADDOLD]</code></pre></div>as you can see theres more than one announce so if possible would like it to announce the second part only once inmaterial of how many times the first part announces i use this code to announce<br><div class="codebox"><p>Code: </p><pre><code>set result [mysqlsel $db_handle "SELECT `release` FROM `from` WHERE `release` = '$rlsname' AND `type` = '$type'"]set result2 [mysqlsel $db_handle "SELECT `release` FROM `from` WHERE `release` = '$rlsname' AND `type` = 'SITEPRE'"]    set result3 [mysqlsel $db_handle "SELECT `release` FROM `from` WHERE `release` = '$rlsname' AND `type` = 'ADDOLD'"]    if { $result2 == "1" } {putnow "PRIVMSG $chan : $bopen\002\00314$rlsname\003\002 &gt; \00309Already added via SiTEPRE\003$bclose"} else {if { $result3 == "1" } {putnow "PRIVMSG $chan : $bopen\002\00314$rlsname\003\002 &gt; \00309Already added via ADDOLD\003$bclose"</code></pre></div>so need something in there so it only runs once if possible<br><br>many thanks in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12170">COBRa</a> — Fri Feb 10, 2017 8:51 am</p><hr />
]]></content>
	</entry>
	</feed>
