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

	<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>2015-04-29T19:53:26-04:00</updated>

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

		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-04-29T19:53:26-04:00</updated>

		<published>2015-04-29T19:53:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103970#p103970</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103970#p103970"/>
		<title type="html"><![CDATA[List elements between braces how to search?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103970#p103970"><![CDATA[
Thanks <strong class="text-strong">SpiKe^^</strong> worked perfectly. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br> If you want to share the full code with my modifications notified me that I'll post here (is in Spanish). <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 <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Wed Apr 29, 2015 7:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2015-04-29T19:18:52-04:00</updated>

		<published>2015-04-29T19:18:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103969#p103969</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103969#p103969"/>
		<title type="html"><![CDATA[List elements between braces how to search?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103969#p103969"><![CDATA[
Maybe....<div class="codebox"><p>Code: </p><pre><code>proc del_in_fd {nick uhost hand chan text} {  ##variable who added nick to delete (dont use list commands on strings!)##  set who [lindex [split $text] 0]  ##nicknames variable  stored values ​​I said above &amp; split to a list.##  set nicknames [split [getinfo]]  ##Compare who (nick to delete) with the value of the variable nicknames above.##  set i [lsearch -exact -nocase $nicknames $who]  if {$i == -1} {    putmsg $canal_admin "$who not found in the database!"    return 0  } else {    ##Delete index containing the nick in the list &amp; join list to string.###    set nicknames [join [lreplace $nicknames $i $i]]        ###for debuggin purpose###    putmsg $canal_admin "value nicknames: $nicknames"    #####HERE PROBLEM######  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Wed Apr 29, 2015 7:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-04-29T16:38:04-04:00</updated>

		<published>2015-04-29T16:38:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103968#p103968</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103968#p103968"/>
		<title type="html"><![CDATA[List elements between braces how to search?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103968#p103968"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>This is made much more difficult, because you are not giving us everything that you are working with.</div></blockquote> Dear friend, of course I have given the full code on several occasions, <a href="http://forum.egghelp.org/viewtopic.php?p=61004" class="postlink">TCL</a> is the same we have been studying in other threads.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>I did not put full at this time, since the code is very complex, and do not want to confuse them when applying concrete help with a small part of it.<br><br>What I will share them, my doubts are small pieces of code that achievement not fix.<br>Anyway I have adapted the original TCL to my needs, so it is not identical.<br><br>I've shared part of <em class="text-italics">getinfo</em> proc, you were curious as to how it worked the same, but that part and have dominated the list to add or nicks.<br><br>If you want to use only the <em class="text-italics">getinfo</em> for the purpose of achieving the same results that I managed process, you have to create a text file and put the first line of the same, all nicks separated by a space.<br>eg:<br>LINE 1 of your txt file look like this:<div class="codebox"><p>Code: </p><pre><code>pedro juan {FoSFaTiTo} maria susan </code></pre></div>As <strong class="text-strong">SpiKe^^</strong> said earlier, the result stored in a variable is a string separated by spaces.<br><br>Anyway when I get finished all the code I'll share with you completely. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>I've solved the processes when added as the nicks are listed, so that they are stored in text format without losing any characters (eg containing braces).<br>That I succeeded, with the help of <strong class="text-strong">SpiKe^^</strong> who advised me to use the <em class="text-italics">split </em>command.<br><br>The only part I have left unfixed is the procedure where a nick from the list is deleted, prompting my new consulting <strong class="text-strong">SpiKe^^</strong>.<blockquote class="uncited"><div>SpiKe^^,there is a part that I could not solve.<br>See if you help me, the solution should be easy, but I could not fix the code.<br>Example:<div class="codebox"><p>Code: </p><pre><code>$nicknames = mario pedro luis {susan} {[polo]}</code></pre></div><div class="codebox"><p>Code: </p><pre><code>proc del_in_fd {nick uhost hand chan text} {##variable who added nick to delete##set who [lindex $text 0]##nicknames variable  stored values ​​I said above.##nicknames [getinfo]##Compare who (nick to delete) with the value of the variable nicknames above.##  if {[lsearch -exact [string tolower $nicknames] [string tolower $who]] == -1} {   putmsg $canal_admin "$who not found in the database!"   return 0  } else {##variable i added index nick to delete## set i [lsearch -exact [string tolower $nicknames] [string tolower $who]]##Delete index containing the nick in the string.###set nicknames [lreplace $nicknames $i $i]###for debuggin purpose###putmsg $canal_admin "value nicknames: $nicknames"#####HERE PROBLEM######</code></pre></div><blockquote class="uncited"><div>&lt;oper&gt; !del pedro<br>&lt;bot&gt; value nicknames: mario luis susan {[polo]}<br><br>Eliminate pedro, but it takes away the brace to susan.<br>Where I have to put the split when you delete a nick not remove braces susan? Embarassed<br>Or<br>Is there another way to remove nicks the string without susan lose your braces?</div></blockquote></div></blockquote>So we will wait the kind assistance of <strong class="text-strong">SpiKe^^</strong> for the purpose of completing the code.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Wed Apr 29, 2015 4:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-04-29T13:57:15-04:00</updated>

		<published>2015-04-29T13:57:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103967#p103967</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103967#p103967"/>
		<title type="html"><![CDATA[List elements between braces how to search?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103967#p103967"><![CDATA[
<blockquote class="uncited"><div>This is made much more difficult, because you are not giving us everything that you are working with.</div></blockquote> Dear friend, of course I have given the full code on several occasions, <a href="http://forum.egghelp.org/viewtopic.php?p=61004" class="postlink">TCL</a> is the same we have been studying in other threads.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>I did not put full at this time, since the code is very complex, and do not want to confuse them when applying concrete help with a small part of it.<br><br>What I will share them, my doubts are small pieces of code that achievement not fix.<br>Anyway I have adapted the original TCL to my needs, so it is not identical.<br><br>I've shared part of <em class="text-italics">getinfo</em> proc, you were curious as to how it worked the same, but that part and have dominated the list to add or nicks.<br><br>If you want to use only the <em class="text-italics">getinfo</em> for the purpose of achieving the same results that I managed process, you have to create a text file and put the first line of the same, all nicks separated by a space.<br>eg:<br>LINE 1 of your txt file look like this:<div class="codebox"><p>Code: </p><pre><code>pedro juan {FoSFaTiTo} maria susan </code></pre></div>As <strong class="text-strong">SpiKe^^</strong> said earlier, the result stored in a variable is a string separated by spaces.<br><br>Anyway when I get finished all the code I'll share with you completely. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>I've solved the processes when added as the nicks are listed, so that they are stored in text format without losing any characters (eg containing braces).<br>That I succeeded, with the help of <strong class="text-strong">SpiKe^^</strong> who advised me to use the <em class="text-italics">split </em>command.<br><br>The only part I have left unfixed is the procedure where a nick from the list is deleted, prompting my new consulting <strong class="text-strong">SpiKe^^</strong>.<blockquote class="uncited"><div>SpiKe^^,there is a part that I could not solve.<br>See if you help me, the solution should be easy, but I could not fix the code.<br>Example:<div class="codebox"><p>Code: </p><pre><code>$nicknames = mario pedro luis {susan} {[polo]}</code></pre></div><div class="codebox"><p>Code: </p><pre><code>proc del_in_fd {nick uhost hand chan text} {##variable who added nick to delete##set who [lindex $text 0]##nicknames variable  stored values ​​I said above.##nicknames [getinfo]##Compare who (nick to delete) with the value of the variable nicknames above.##  if {[lsearch -exact [string tolower $nicknames] [string tolower $who]] == -1} {   putmsg $canal_admin "$who not found in the database!"   return 0  } else {##variable i added index nick to delete## set i [lsearch -exact [string tolower $nicknames] [string tolower $who]]##Delete index containing the nick in the string.###set nicknames [lreplace $nicknames $i $i]###for debuggin purpose###putmsg $canal_admin "value nicknames: $nicknames"#####HERE PROBLEM######</code></pre></div><blockquote class="uncited"><div>&lt;oper&gt; !del pedro<br>&lt;bot&gt; value nicknames: mario luis susan {[polo]}<br><br>Eliminate pedro, but it takes away the brace to susan.<br>Where I have to put the split when you delete a nick not remove braces susan? Embarassed<br>Or<br>Is there another way to remove nicks the string without susan lose your braces?</div></blockquote></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Wed Apr 29, 2015 1:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2015-04-29T10:23:26-04:00</updated>

		<published>2015-04-29T10:23:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103965#p103965</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103965#p103965"/>
		<title type="html"><![CDATA[List elements between braces how to search?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103965#p103965"><![CDATA[
<blockquote class="uncited"><div>...<br>The code does not work that way friend.<br>This code stores all nicks in line 1 of the text file, not one per line.</div></blockquote>This is made much more difficult, because you are not giving us everything that you are working with.<br><blockquote class="uncited"><div>In addition, we have lacked copy another part of the total code ...</div></blockquote>... sigh...<br><br><blockquote class="uncited"><div>where proc is used to remove the spaces.<div class="codebox"><p>Code: </p><pre><code> set nicknames [removespaces $nicknames]</code></pre></div><div class="codebox"><p>Code: </p><pre><code>proc removespaces {arg} {  regsub {^\s+} $arg "" arg  return $arg}</code></pre></div></div></blockquote>And who knows why....<br><br>I believe that with a re-write of your method, not only would it be easier to get the correct result, it might even be easier to see it happen.<br><br>I think I will just bow out and wait.   <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=10420">willyw</a> — Wed Apr 29, 2015 10:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-04-28T23:19:05-04:00</updated>

		<published>2015-04-28T23:19:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103964#p103964</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103964#p103964"/>
		<title type="html"><![CDATA[List elements between braces how to search?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103964#p103964"><![CDATA[
<blockquote class="uncited"><div><br>I created a text file that looks like this:<div class="codebox"><p>Code: </p><pre><code>pedrojuan{FoSFaTiTo}mariasusan</code></pre></div>with one nick on each line. <br>Each is on its own line.<br>Created with plain text editor - nano.<br><br>The proc quote above returns this:<br><br>.tcl getinfo<br>&lt;rog&gt; Tcl: pedrojuan{FoSFaTiTo}mariasusan<br><br>Are you sure that is the exact <br>getinfo<br>proc that you are using?   Because... that's a mess.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote> The code does not work that way friend.<br>This code stores all nicks in line 1 of the text file, not one per line.<br>In addition, we have lacked copy another part of the total code where proc is used to remove the spaces.<div class="codebox"><p>Code: </p><pre><code> set nicknames [removespaces $nicknames]</code></pre></div><div class="codebox"><p>Code: </p><pre><code>proc removespaces {arg} {  regsub {^\s+} $arg "" arg  return $arg}</code></pre></div><strong class="text-strong">SpiKe^^</strong>,there is a part that I could not solve.<br>See if you help me, the solution should be easy, but I could not fix the code.<br><strong class="text-strong">Example:</strong><div class="codebox"><p>Code: </p><pre><code>$nicknames = mario pedro luis {susan} {[polo]}</code></pre></div><div class="codebox"><p>Code: </p><pre><code>proc del_in_fd {nick uhost hand chan text} {##variable who added nick to delete##set who [lindex $text 0]##nicknames variable  stored values ​​I said above.##nicknames [getinfo] ##Compare who (nick to delete) with the value of the variable nicknames above.##  if {[lsearch -exact [string tolower $nicknames] [string tolower $who]] == -1} {   putmsg $canal_admin "$who not found in the database!"   return 0  } else {##variable i added index nick to delete## set i [lsearch -exact [string tolower $nicknames] [string tolower $who]]##Delete index containing the nick in the string.###set nicknames [lreplace $nicknames $i $i]###for debuggin purpose### putmsg $canal_admin "value nicknames: $nicknames"#####HERE PROBLEM######</code></pre></div><blockquote class="uncited"><div>&lt;oper&gt; !del pedro<br>&lt;bot&gt; value nicknames:  mario luis susan {[polo]}</div></blockquote>Eliminate pedro, but it takes away the brace to susan.<br>Where I have to put the <em class="text-italics">split</em> when you delete a nick not remove braces susan?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><br>Or<br>Is there  another way to remove nicks the string without susan lose your braces?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Tue Apr 28, 2015 11:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2015-04-28T15:11:14-04:00</updated>

		<published>2015-04-28T15:11:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103963#p103963</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103963#p103963"/>
		<title type="html"><![CDATA[List elements between braces how to search?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103963#p103963"><![CDATA[
<blockquote class="uncited"><div>...<br>And the proc getinfo, part of the total code is:<div class="codebox"><p>Code: </p><pre><code>proc getinfo {} {  global filename  set file [open $filename r]  set nlist ""  while {![eof $file]} {   set chast [gets $file]    if {$chast != ""} {     append nlist $chast   }  }  close $file  return $nlist}</code></pre></div></div></blockquote><br>I created a text file that looks like this:<div class="codebox"><p>Code: </p><pre><code>pedrojuan{FoSFaTiTo}mariasusan</code></pre></div>with one nick on each line. <br>Each is on its own line.<br>Created with plain text editor - nano.<br><br>The proc quote above returns this:<br><br>.tcl getinfo<br>&lt;rog&gt; Tcl: pedrojuan{FoSFaTiTo}mariasusan<br><br>Are you sure that is the exact <br>getinfo<br>proc that you are using?   Because... that's a mess.   <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=10420">willyw</a> — Tue Apr 28, 2015 3:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-04-28T11:44:35-04:00</updated>

		<published>2015-04-28T11:44:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103962#p103962</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103962#p103962"/>
		<title type="html"><![CDATA[List elements between braces how to search?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103962#p103962"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>result: <br><br> Quote: <br>pedro juan {FoSFaTiTo} maria susan </div></blockquote>That's not a list! It's a space separated string.<br>You need to split it into a proper tcl list at the spaces before treating it as a list...<div class="codebox"><p>Code: </p><pre><code>foreach n [split $nicknames] {   putmsg #canal "$n" }</code></pre></div></div></blockquote>Thanks SpiKe^^, when I go home I try to change the code so advised.<br><blockquote class="uncited"><div>It looks like you have some other scripts, or parts to this script, that create a proc named<br>getinfo<br><br>Please show us the whole script.<br><br>I'm curious to see how that<br>getinfo<br>makes the list, etc.</div></blockquote>The full code I have already posted in other threads.<br>See <a href="http://forum.egghelp.org/viewtopic.php?p=61004" class="postlink">here.</a><br><br>And the proc getinfo, part of the total code is:<div class="codebox"><p>Code: </p><pre><code>proc getinfo {} {  global filename  set file [open $filename r]  set nlist ""  while {![eof $file]} {   set chast [gets $file]    if {$chast != ""} {     append nlist $chast   }  }  close $file  return $nlist}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Tue Apr 28, 2015 11:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2015-04-28T10:39:17-04:00</updated>

		<published>2015-04-28T10:39:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103961#p103961</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103961#p103961"/>
		<title type="html"><![CDATA[List elements between braces how to search?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103961#p103961"><![CDATA[
<blockquote class="uncited"><div>...<br>set nicknames [getinfo] <br>...</div></blockquote>It looks like you have some other scripts, or parts to this script, that create a proc named<br>getinfo<br><br>Please show us the whole script.<br><br>I'm curious to see how that <br>getinfo<br>makes the list, etc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Tue Apr 28, 2015 10:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2015-04-28T08:25:52-04:00</updated>

		<published>2015-04-28T08:25:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103960#p103960</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103960#p103960"/>
		<title type="html"><![CDATA[List elements between braces how to search?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103960#p103960"><![CDATA[
<blockquote class="uncited"><div>result: <br><br> Quote: <br>pedro juan {FoSFaTiTo} maria susan </div></blockquote>That's not a list! It's a space separated string.<br>You need to split it into a proper tcl list at the spaces before treating it as a list...<div class="codebox"><p>Code: </p><pre><code>foreach n [split $nicknames] {   putmsg #canal "$n" }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Tue Apr 28, 2015 8:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-04-27T11:40:54-04:00</updated>

		<published>2015-04-27T11:40:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103959#p103959</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103959#p103959"/>
		<title type="html"><![CDATA[List elements between braces how to search?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103959#p103959"><![CDATA[
I've managed to save a <em class="text-italics">list</em> of nicks on line 0 in a text file.<br><br>The problem I have is when search and find nicks that list that begin and end with braces.<br><br>Example:<br>The <em class="text-italics">nicknames</em> variable is stored the full list of nicks.<br>$nicknames = pedro juan {FoSFaTiTo} maria susan<br>When I fetch the nick {FoSFaTiTo} on that list, the code takes the argument WITHOUT braces (the nick contains those braces), for that reason can not find it in the list.<div class="codebox"><p>Code: </p><pre><code>## !list [nickname]bind pub n !list list_out_of_fdproc list_out_of_fd {nick uhost hand chan arg} {  global nchan  if {[string tolower $chan] != [string tolower $nchan]} {   return  }  if {[llength $arg] == 0} {##here nicknames variables take values of list##   set nicknames [getinfo]   if {$nicknames == ""} {     puthelp "NOTICE $nick :No one is added in the database!"   } else {     puthelp "NOTICE $nick :Added in the database: $nicknames"   }  } elseif {[llength $arg] == 1} {##here nicknames variables take values of list##   set nicknames [getinfo]#For debuggin purposes#   putmsg $nchan "The list: $nicknames"   set arg [lindex $arg 0]#For debuggin purposes#   putmsg $nchan "Nick to search: $arg"   if {[lsearch -exact [string tolower $nicknames] [string tolower $arg]] == -1} {     puthelp "NOTICE $nick :$arg not found in the database!"   } else {     puthelp "NOTICE $nick :$arg  is in the database!"   }  } else {   puthelp "NOTICE $nick :Usage: !list \[nickname\]"  }}</code></pre></div>Result:<blockquote class="uncited"><div>&lt;oper&gt; !list {FoSFaTiTo}<br>&lt;bot&gt; The list: pedro juan {FoSFaTiTo} maria susan<br>&lt;bot&gt; Nick to search: FoSFaTiTo<br>&lt;bot&gt; FoSFaTiTo not found in the database!</div></blockquote>Any idea how to solve this problem with nicks containing braces?<br><br><strong class="text-strong">EDIT:</strong><br> Another thing I've found if I show the contents of the variable that contains the list, the list looks good by the channel.<br>Example:<div class="codebox"><p>Code: </p><pre><code>putmsg #canal "$nicknames"</code></pre></div>result: <blockquote class="uncited"><div>pedro juan {FoSFaTiTo} maria susan</div></blockquote>but if I do a foreach or use any other loop in the variable returns the nick me without the braces.<div class="codebox"><p>Code: </p><pre><code>foreach n $nicknames {putmsg #canal "$n"}</code></pre></div>result: <blockquote class="uncited"><div>pedro<br>juan<br>FoSFaTiTo<br>maria<br>susan</div></blockquote>It's so hard to fix this in Tcl?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Mon Apr 27, 2015 11:40 am</p><hr />
]]></content>
	</entry>
	</feed>
