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

	<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>2004-03-02T18:28:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2004-03-02T18:28:57-04:00</updated>

		<published>2004-03-02T18:28:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34168#p34168</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34168#p34168"/>
		<title type="html"><![CDATA[problem in chanlist with nick char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34168#p34168"><![CDATA[
You can search the list with lsearch and remove the nick you want with lreplace, for part. For join, you can add the nick you want with lappend.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue Mar 02, 2004 6:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Careto]]></name></author>
		<updated>2004-03-02T18:04:54-04:00</updated>

		<published>2004-03-02T18:04:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34167#p34167</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34167#p34167"/>
		<title type="html"><![CDATA[problem in chanlist with nick char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34167#p34167"><![CDATA[
Thanks strikelight<br><br>The list of nick appears to me all good, with nicks correct with <div class="codebox"><p>Code: </p><pre><code>puts $file "[join $$prueba]"</code></pre></div> <br>But now not like doing, that in part it clears to nick that it leaves the channel, of the list and sees the others nicks.  <br>IE.  In Join:  [^__^] atest axe <br>In part:  (if list leaves the channel [^__^]):  atest axe <br><br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4642">Careto</a> — Tue Mar 02, 2004 6:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-03-02T14:01:41-04:00</updated>

		<published>2004-03-02T14:01:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34157#p34157</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34157#p34157"/>
		<title type="html"><![CDATA[problem in chanlist with nick char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34157#p34157"><![CDATA[
There is no need to be using regsub..<br>Your problem is with trying to use lists as strings...<br><br>for example... you use "lrange" to return a LIST, which will escape/protect special character elements...<br>To convert to a string you must use the [join] command....<br><br>ie. Topic: [join [lrange yer-normal-stuff-here]]<br><br>And when writing your variable "prueba" and "cuentame" to file, they are lists,<br>if you want to write it as a string, you must again, use [join]...<br><br>ie. puts $file "[join $prueba]"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Tue Mar 02, 2004 2:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Careto]]></name></author>
		<updated>2004-03-02T13:56:32-04:00</updated>

		<published>2004-03-02T13:56:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34156#p34156</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34156#p34156"/>
		<title type="html"><![CDATA[problem in chanlist with nick char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34156#p34156"><![CDATA[
I have one problem with chanlist:<br><div class="codebox"><p>Code: </p><pre><code>bind join - "#canal *" topicsproc topics {nick uhost hand chan} {if {[string equal -nocase $chan "$chan"]} {set file [open pruebanick w]set cuentame [chanlist $chan]regsub -all "{" $cuentame "" cuentameregsub -all "}" $cuentame "" cuentameputs $file "$cuentame"set op 0set voice 0set normal 0putserv "notice $nick :Topic: [lrange [topic $chan] 0 end]"putserv "notice $nick :Total de Usuarios: [llength [chanlist $chan]]"putserv "notice $nick :Modos del canal: [lindex [getchanmode $chan] 0]"foreach user [chanlist $chan] {    if {[isop $user $chan]} {      incr op    } elseif {[isvoice $user $chan]} {      incr voice    } else { incr normal }  }putserv "notice $nick :Total de Op: $op - Total Voice: $voice - Total Normales: $normal"}close $file}bind part - "#canal *" partesproc partes {nick uhost hand chan reason} {if {$reason == ""} {if {[string equal -nocase $chan "$chan"]} {set file [open pruebanick w]set cuentame [chanlist $chan]regsub -all $nick $cuentame "" cuentameset prueba [lsort -increasing -dictionary $cuentame]puts $file "$prueba"}close $file}}</code></pre></div>the problem is, in $file chanlist, if nick is [^__^] or |-XXX-|, when copying itself in the file it appears {[^__^]}, in the bind join this corrected with:<div class="codebox"><p>Code: </p><pre><code>regsub -all "{" $cuentame "" cuentameregsub -all "}" $cuentame "" cuentame</code></pre></div>But in the bind part, not remove $nick with char "[] {} | |".<br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4642">Careto</a> — Tue Mar 02, 2004 1:56 pm</p><hr />
]]></content>
	</entry>
	</feed>
