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

	<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>2002-08-29T15:18:46-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-29T15:18:46-04:00</updated>

		<published>2002-08-29T15:18:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10205#p10205</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10205#p10205"/>
		<title type="html"><![CDATA[is it possible...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10205#p10205"><![CDATA[
No problem, glad to be of service <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 Guest — Thu Aug 29, 2002 3:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-29T13:34:07-04:00</updated>

		<published>2002-08-29T13:34:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10200#p10200</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10200#p10200"/>
		<title type="html"><![CDATA[is it possible...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10200#p10200"><![CDATA[
thx a bunch iridium... just what the doctor ordered :&gt;<p>Statistics: Posted by Guest — Thu Aug 29, 2002 1:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-29T15:18:19-04:00</updated>

		<published>2002-08-29T12:56:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10195#p10195</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10195#p10195"/>
		<title type="html"><![CDATA[is it possible...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10195#p10195"><![CDATA[
You're using llength. That counts the number of 'elements' in a list. (in this case the number of words). Using llength on raw user input is bad because whatever they input will be interpretted literally.<br><br>if you want to count the number of words, do this:<br><div class="codebox"><p>Code: </p><pre><code>if {[llength [split $arg]] &lt; 4} {  # put in less than four arguments.. fob them off} else {  # they put in four or more arguments.. code to do whatever goes here}</code></pre></div>But that isn't even what you want. You want to count the number of characters he put in.<br><div class="codebox"><p>Code: </p><pre><code>if {[string length $args] &lt; 4} {  # they put in less than four characters.. bitch at them} else {  # they put in four or more arguments.. code to do whatever goes here}</code></pre></div>Hope that helps.<p>Statistics: Posted by Guest — Thu Aug 29, 2002 12:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-29T12:34:44-04:00</updated>

		<published>2002-08-29T12:34:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10194#p10194</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10194#p10194"/>
		<title type="html"><![CDATA[is it possible...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10194#p10194"><![CDATA[
i suppose "at least 3 characters" should mean that [llength $arg] should be &lt; 4<br>logic ;)<p>Statistics: Posted by Guest — Thu Aug 29, 2002 12:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-29T12:09:11-04:00</updated>

		<published>2002-08-29T12:09:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10193#p10193</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10193#p10193"/>
		<title type="html"><![CDATA[is it possible...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10193#p10193"><![CDATA[
....to sort the following code so user input has to be at least 3 characters ?<br>i tried changing the if {[llength $arg] &lt; 3} then { but that doesnt work.<br><br><br>proc qfind {nick host hand chan arg} {<br>    if {[llength $arg] &lt; 1} then {<br>putquick "NOTICE $nick : You might wanna put in a search word to limit the list a bit"<br>return<p>Statistics: Posted by Guest — Thu Aug 29, 2002 12:09 pm</p><hr />
]]></content>
	</entry>
	</feed>
