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

	<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>2021-01-01T11:43:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[geek]]></name></author>
		<updated>2021-01-01T11:36:24-04:00</updated>

		<published>2021-01-01T11:36:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109304#p109304</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109304#p109304"/>
		<title type="html"><![CDATA[strange behavior from llength]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109304#p109304"><![CDATA[
perfect SpiKe^^<br><br>very 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=10286">geek</a> — Fri Jan 01, 2021 11:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2021-01-01T11:43:55-04:00</updated>

		<published>2021-01-01T10:29:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109303#p109303</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109303#p109303"/>
		<title type="html"><![CDATA[strange behavior from llength]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109303#p109303"><![CDATA[
Your arg var is not a list.<br><br>Don't use list commands on strings.<br><br>Use split to turn arg into a list before checking it for llength.<br><div class="codebox"><p>Code: </p><pre><code>set nickname [string trim $nickname]set arguments [llength [split $nickname]]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri Jan 01, 2021 10:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[geek]]></name></author>
		<updated>2021-01-01T10:02:12-04:00</updated>

		<published>2021-01-01T10:02:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109302#p109302</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109302#p109302"/>
		<title type="html"><![CDATA[strange behavior from llength]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109302#p109302"><![CDATA[
I have this very simple piece of code:<br><div class="codebox"><p>Code: </p><pre><code>proc ldmtest {nick host hand chan arg} {##nel RFC 2812 sezione 2.3.1 vengono specificati i caratteri ammessi nel nickname##oltre a lettere e numeri sono permessi i seguenti:[ ] \ ` _ ^ { | } -#set RE {[^a-zA-Z0-9\s\[\]\\`_\^\{\|\}-]}if { [regexp -all -- $RE $arg] } {puthelp "PRIVMSG $chan :nickname non trovato"return}set nickname [stripcodes * $arg]set nickname [string trim $nickname]#putlog "good until here"set arguments [llength $nickname]if { $arguments &gt; 1 } {puthelp "PRIVMSG $chan :specificare un utente alla volta"return} elseif { $arguments == 0 } {puthelp "PRIVMSG $chan :specificare il nickname"return}if { ![onchan $nickname $chan] } {puthelp "PRIVMSG $chan :nickname non trovato"return}}</code></pre></div><br>if input is one of this:<ul><li>{<br>{a<br>{  a <br>{  {</li></ul>when llength runs, I get "Tcl error: unmatched open brace in list"<br><br>I just want to count the number of elements... how to get around the problem?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10286">geek</a> — Fri Jan 01, 2021 10:02 am</p><hr />
]]></content>
	</entry>
	</feed>
