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

	<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>2007-07-07T18:23:46-04:00</updated>

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

		<entry>
		<author><name><![CDATA[cache]]></name></author>
		<updated>2007-07-07T18:23:25-04:00</updated>

		<published>2007-07-07T18:23:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74245#p74245</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74245#p74245"/>
		<title type="html"><![CDATA[help with my tea script [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74245#p74245"><![CDATA[
Thanks w00f got it working  <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=7220">cache</a> — Sat Jul 07, 2007 6:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[w00f]]></name></author>
		<updated>2007-07-07T17:08:43-04:00</updated>

		<published>2007-07-07T17:08:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74243#p74243</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74243#p74243"/>
		<title type="html"><![CDATA[help with my tea script [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74243#p74243"><![CDATA[
use -nocase option with string match<br>i.e. <div class="codebox"><p>Code: </p><pre><code>set cmd [lindex $rest 0]if {[string match -nocase $cmd "help"]} { .... }</code></pre></div>~w00f<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8264">w00f</a> — Sat Jul 07, 2007 5:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cache]]></name></author>
		<updated>2007-07-07T18:23:46-04:00</updated>

		<published>2007-07-07T15:50:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74242#p74242</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74242#p74242"/>
		<title type="html"><![CDATA[help with my tea script [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74242#p74242"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>#################proc pub_!tea {nick uhost hand chan rest} {  global botnick  set cmd [string tolower [lindex $rest 0]]  if {$cmd == "help"} {    putnot $nick "!tea will give you a hot tea."    putnot $nick "!tea &lt;nick&gt; will give &lt;nick&gt; a hot tea." ; return 0}  if {$cmd == ""} {    putchan $chan "\001ACTION sets a fresh cup of hot tea in front of $nick\001" ;return 0}  putchan $chan "\001ACTION sets a fresh cup of hot tea in front of $cmd\001"}bind pub - !tea pub_!tea#################</code></pre></div>when using "!tea help" it don't work unless 'help' is typed in lowercase letters.. im sure it is "[string tolower [lindex $rest 0]]" causing it but I can't figure out anything else to use to allow caps and lowercase...<br><br>Can someone please point me in right direction or show me another example script?  Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7220">cache</a> — Sat Jul 07, 2007 3:50 pm</p><hr />
]]></content>
	</entry>
	</feed>
