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

	<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>2009-05-01T11:15:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[cleaner]]></name></author>
		<updated>2009-05-01T11:15:11-04:00</updated>

		<published>2009-05-01T11:15:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88628#p88628</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88628#p88628"/>
		<title type="html"><![CDATA[Pub string match - simple command, silly problem.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88628#p88628"><![CDATA[
Thanks, I think that I most rewrite some scripts hehe <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=10597">cleaner</a> — Fri May 01, 2009 11:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2009-04-30T17:36:12-04:00</updated>

		<published>2009-04-30T17:36:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88626#p88626</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88626#p88626"/>
		<title type="html"><![CDATA[Pub string match - simple command, silly problem.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88626#p88626"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub -|- !xxx pub_do_cccproc pub_do_ccc {nick host handle channel text} {  switch -- [string tolower [string trim $text]] {    "ccc" { putserv "PRIVMSG $channel :good" }    "ccc1" { putserv "PRIVMSG $channel :good1" }    "ccc2" { putserv "PRIVMSG $channel :good2" }    default { putserv "PRIVMSG $channel :bad" }  }}</code></pre></div>There are many ways to accomplish this, but the faster method is usually preferred. The command "switch" is probably faster than nesting if's and else's in this case.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Thu Apr 30, 2009 5:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cleaner]]></name></author>
		<updated>2009-04-30T10:05:21-04:00</updated>

		<published>2009-04-30T10:05:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88625#p88625</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88625#p88625"/>
		<title type="html"><![CDATA[Pub string match - simple command, silly problem.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88625#p88625"><![CDATA[
Thanks <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=10597">cleaner</a> — Thu Apr 30, 2009 10:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tsukeh]]></name></author>
		<updated>2009-04-30T09:48:10-04:00</updated>

		<published>2009-04-30T09:48:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88624#p88624</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88624#p88624"/>
		<title type="html"><![CDATA[Pub string match - simple command, silly problem.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88624#p88624"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub -|- !xxx pub_do_cccproc pub_do_ccc {nick host handle channel text} { set text [string trim $text] if {[string match -nocase "ccc" $text]} {   putserv "PRIVMSG $channel : good" } elseif {[string match -nocase "ccc1" $text]} {   putserv "PRIVMSG $channel : good1" } elseif {[string match -nocase "ccc2" $text]} {   putserv "PRIVMSG $channel : good2" } else {   putserv "PRIVMSG $channel : bad" }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5911">tsukeh</a> — Thu Apr 30, 2009 9:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cleaner]]></name></author>
		<updated>2009-04-30T09:20:21-04:00</updated>

		<published>2009-04-30T09:20:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88623#p88623</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88623#p88623"/>
		<title type="html"><![CDATA[Pub string match - simple command, silly problem.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88623#p88623"><![CDATA[
Hello,<br><br>Can anybody help me fix it ?<br><br>I don't know what is wrong with this...<br><br>I mean that good function "!xxx ccc" show 2 responses:<br><div class="codebox"><p>Code: </p><pre><code>15:14:45 &lt;A&gt;  good15:14:46 &lt;A&gt;  bad</code></pre></div>The: "!xxx ccc", as only to show: "good".<br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- !xxx pub_do_cccproc pub_do_ccc {nick host handle channel text} {if {[string match -nocase "ccc" [string trim $text]]} {putserv "PRIVMSG $channel : good"}elseif {[string match -nocase "ccc1" [string trim $text]]} {putserv "PRIVMSG $channel : good1"}elseif {[string match -nocase "ccc2" [string trim $text]]} {putserv "PRIVMSG $channel : good2"}   putserv "PRIVMSG $channel : bad" }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10597">cleaner</a> — Thu Apr 30, 2009 9:20 am</p><hr />
]]></content>
	</entry>
	</feed>
