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

	<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-07-10T12:01:18-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2013-07-10T12:01:18-04:00</updated>

		<published>2013-07-10T12:01:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101826#p101826</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101826#p101826"/>
		<title type="html"><![CDATA[Category]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101826#p101826"><![CDATA[
The <em class="text-italics">string tolower</em> should take care of the letter cases so should match the text without doing any changes to it.<br><br>Anyway, glad it got sorted out and it's 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=187">caesar</a> — Wed Jul 10, 2013 12:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2013-07-10T09:51:29-04:00</updated>

		<published>2013-07-10T09:51:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101825#p101825</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101825#p101825"/>
		<title type="html"><![CDATA[Category]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101825#p101825"><![CDATA[
Oh it does work - you didnt mention i should use lowercase<br><br>thank you very much for your help!!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Wed Jul 10, 2013 9:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2013-07-10T08:53:49-04:00</updated>

		<published>2013-07-10T08:53:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101823#p101823</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101823#p101823"/>
		<title type="html"><![CDATA[Category]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101823#p101823"><![CDATA[
Hi now there are no errors but it doesnt work either<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Wed Jul 10, 2013 8:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2013-07-10T07:30:01-04:00</updated>

		<published>2013-07-10T07:30:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101822#p101822</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101822#p101822"/>
		<title type="html"><![CDATA[Category]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101822#p101822"><![CDATA[
This means you have an older version of TCL, most likely 8.4. Anyway, replace:<div class="codebox"><p>Code: </p><pre><code>switch -nocase -- $category { </code></pre></div>with:<div class="codebox"><p>Code: </p><pre><code>switch -- [string tolower $category] { </code></pre></div>and should work fine.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jul 10, 2013 7:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2013-07-10T05:05:58-04:00</updated>

		<published>2013-07-10T05:05:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101820#p101820</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101820#p101820"/>
		<title type="html"><![CDATA[Category]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101820#p101820"><![CDATA[
Thank you caesar<br><br>I am getting this error:<br><blockquote class="uncited"><div>[11:05] Tcl error [pubm:category]: bad option "-nocase": must be -exact, -glob, -regexp, or --</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Wed Jul 10, 2013 5:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2013-07-10T01:13:46-04:00</updated>

		<published>2013-07-10T01:13:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101819#p101819</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101819#p101819"/>
		<title type="html"><![CDATA[Category]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101819#p101819"><![CDATA[
Give this a try.<div class="codebox"><p>Code: </p><pre><code>bind pubm * * pubm:categoryproc pubm:category {nick uhost hand chan text} {if {![string match -nocase $chan "#channel"]} returnset category [string trim [lindex [split $text] end] {()}]switch -nocase -- $category {default {return}"culture" {puthelp "PRIVMSG #culture :$text"}"weather" {puthelp "PRIVMSG #weather :$text"}"economy" {puthelp "PRIVMSG #allfriends :$text"}}}</code></pre></div>Replace #channel with the actual channel name you get the lines.<br><br>PS: Haven't tested so reply back if you get any errors or it's not working.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jul 10, 2013 1:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2013-07-09T13:10:20-04:00</updated>

		<published>2013-07-09T13:10:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101814#p101814</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101814#p101814"/>
		<title type="html"><![CDATA[Category]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101814#p101814"><![CDATA[
Hello I need your help loyal tcl fans!<br><br>I need your help with matching a text when written in a certain chat room, the text is usually in the following snytax<br><br>&lt;Nickname&gt; Have you been a victim of meeting malpractice? - <a href="http://www.bbc.com/capital/story/20130709-why-office-meetings-go-wrong" class="postlink">http://www.bbc.com/capital/story/201307 ... s-go-wrong</a> (culture)<br><br>Which is actually the article headline, itself link and the 'category'.<br><br>I want a script that I can define for each category to which channel the line will be relayed<br><br>for example, culture would go to #culture, weather would go to #weather and Economy could go to #allfriends - so you can actually define for each category where to relay the message<br><br>I request your help dear tcl fans!!<br>thanxx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Tue Jul 09, 2013 1:10 pm</p><hr />
]]></content>
	</entry>
	</feed>
