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

	<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-04-27T18:27:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2008-04-27T18:27:42-04:00</updated>

		<published>2008-04-27T18:27:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82583#p82583</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82583#p82583"/>
		<title type="html"><![CDATA[Checking for identical messages in proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82583#p82583"><![CDATA[
thanks  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Sun Apr 27, 2008 6:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-04-27T16:29:20-04:00</updated>

		<published>2008-04-27T16:29:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82577#p82577</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82577#p82577"/>
		<title type="html"><![CDATA[Checking for identical messages in proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82577#p82577"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc my:message {text} { global settings if {![string equal -nocase [stripcodes bcruag $text] $settings(last)]} {  puthelp "PRIVMSG $settings(dest) :$text"  set settings(last) [stripcodes bcruag $text] }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Apr 27, 2008 4:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2008-04-27T14:56:41-04:00</updated>

		<published>2008-04-27T14:56:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82575#p82575</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82575#p82575"/>
		<title type="html"><![CDATA[Checking for identical messages in proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82575#p82575"><![CDATA[
I'm looking for way to check for identical messages, example:<div class="codebox"><p>Code: </p><pre><code>proc my:message {text} {global settings puthelp "PRIVMSG $settings(dest) :$text"  return}</code></pre></div>I've thought about doing <div class="codebox"><p>Code: </p><pre><code>if {($::settings(lastmsg) != "$text")} { set settings(lastmsg) "$text"  return}</code></pre></div> but not having much luck getting it to work. alot of the text contains color codes. incase that helps any.<br><br>I'm aware of the settings: <blockquote class="uncited"><div>set double-mode 0<br> Allow identical messages in the mode queue?<br>set double-server 0<br> Allow identical messages in the server queue?<br>set double-help 0<br>  Allow identical messages in the help queue?</div></blockquote> *sigh* as nice as it would be set these all to 1 <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> its just the one proc i need to prevent identical messages from being sent.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Sun Apr 27, 2008 2:56 pm</p><hr />
]]></content>
	</entry>
	</feed>
