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

	<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>2005-11-02T04:41:44-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Buffy_25]]></name></author>
		<updated>2005-11-02T04:41:44-04:00</updated>

		<published>2005-11-02T04:41:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56982#p56982</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56982#p56982"/>
		<title type="html"><![CDATA[Check for first char of sentence]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56982#p56982"><![CDATA[
Thank you very much avilon !<br><br>Working great  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br><br>Buffy<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4178">Buffy_25</a> — Wed Nov 02, 2005 4:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[avilon]]></name></author>
		<updated>2005-11-01T14:30:14-04:00</updated>

		<published>2005-11-01T14:30:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56958#p56958</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56958#p56958"/>
		<title type="html"><![CDATA[Check for first char of sentence]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56958#p56958"><![CDATA[
Yes.<br>To remove control chars from a string you can use [stripcodes].<div class="codebox"><p>Code: </p><pre><code>[string index [stripcodes bcruag $arg] 0]</code></pre></div><a href="http://www.eggheads.org/support/egghtml/1.6.17/tcl-commands.html" class="postlink">http://www.eggheads.org/support/egghtml ... mands.html</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5191">avilon</a> — Tue Nov 01, 2005 2:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Buffy_25]]></name></author>
		<updated>2005-11-01T09:50:31-04:00</updated>

		<published>2005-11-01T09:50:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56953#p56953</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56953#p56953"/>
		<title type="html"><![CDATA[Check for first char of sentence]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56953#p56953"><![CDATA[
Hi avilon.<br><br>This is working perfect if i use no colours.<br>If the [What] is in colour, it's not being recognized  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> <br><br>Is this normal?<br>Can colours influence this?<br><br>Buffy<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4178">Buffy_25</a> — Tue Nov 01, 2005 9:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[avilon]]></name></author>
		<updated>2005-11-01T08:19:09-04:00</updated>

		<published>2005-11-01T08:19:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56947#p56947</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56947#p56947"/>
		<title type="html"><![CDATA[Check for first char of sentence]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56947#p56947"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pubm - * tclcodeproc tclcode {nick uhost hand chan arg} {if {[string index $arg 0]=="\["} {puthelp "PRIVMSG $chan :The \[ has been found!"}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5191">avilon</a> — Tue Nov 01, 2005 8:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Buffy_25]]></name></author>
		<updated>2005-11-01T07:09:51-04:00</updated>

		<published>2005-11-01T07:09:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56946#p56946</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56946#p56946"/>
		<title type="html"><![CDATA[Check for first char of sentence]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56946#p56946"><![CDATA[
Hello,<br><br>What i would like to do is:<br>When a person types a msg in the room, i would like that my bot detects when the first char of the first word of the sentence is a "["<br><br>For example<blockquote class="uncited"><div>[What] do you prefer?</div></blockquote>Then my Bot replies:<blockquote class="uncited"><div>The '[' has been found!</div></blockquote>I have the following code, but it doesn't work  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> <div class="codebox"><p>Code: </p><pre><code>bind pub - * tclcodeproc tclcode {nick uhost hand chan arg} {set firstword [lindex [split $arg] 0]if {[string index $firstword 0]=="["} {puthelp "PRIVMSG #channel : The [ has been found! "}}</code></pre></div>Thank you for your help.<br><br>Buffy<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4178">Buffy_25</a> — Tue Nov 01, 2005 7:09 am</p><hr />
]]></content>
	</entry>
	</feed>
