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

	<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>2020-04-27T15:02:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-04-27T15:02:10-04:00</updated>

		<published>2020-04-27T15:02:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108330#p108330</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108330#p108330"/>
		<title type="html"><![CDATA[output results in alpabetical order]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108330#p108330"><![CDATA[
thanks spike^^ that seems to do it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Apr 27, 2020 3:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2020-04-27T11:35:21-04:00</updated>

		<published>2020-04-27T11:35:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108329#p108329</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108329#p108329"/>
		<title type="html"><![CDATA[output results in alpabetical order]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108329#p108329"><![CDATA[
Use the lsort command to sort lists in tcl.<br><a href="http://www.tcl.tk/man/tcl8.5/TclCmd/lsort.htm" class="postlink">http://www.tcl.tk/man/tcl8.5/TclCmd/lsort.htm</a><br><br>Try sorting the list after your check if it does exist...<div class="codebox"><p>Code: </p><pre><code>   if {[info exists voiceList]} {       set voiceList [lsort -dictionary $voiceList]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Mon Apr 27, 2020 11:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-04-27T08:15:21-04:00</updated>

		<published>2020-04-27T08:15:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108328#p108328</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108328#p108328"/>
		<title type="html"><![CDATA[output results in alpabetical order]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108328#p108328"><![CDATA[
i was wondering if the output could be in alphabetical order as it doesnt seem to be as is:<br><div class="codebox"><p>Code: </p><pre><code>bind pub n|n .mcheck check_allset excnickX2 {"chanserv"}proc check_all {nick host handle chan text} {global excnickX2# grab the channel members list and exclude the bot from itset userList [chanlist $chan]set pos [lsearch -nocase $userList $::botnick]set userList [lreplace $userList $pos $pos]# set kick reasonset reasonX55 [join [lrange [split $text ] 0 end]]if {$reasonX55 eq ""} { set reasonX55 Requested }# build the list with only people that arent on chan access listforeach user [split $userList] {if {![isvoice $user $chan] &amp;&amp; ![isop $user $chan] &amp;&amp; ![ishalfop $user $chan] &amp;&amp; ![matchattr [nick2hand $user] fnmo|fnmo $chan] &amp;&amp; [lsearch -nocase $excnickX2 $user] == -1} {  lappend voiceList $user }}set max 4if {[info exists voiceList]} {set len [llength $voiceList]while {$len &gt; 0} {if {$len &gt; $max} {set mode [string repeat "v" $max]set users [join [lrange $voiceList 0 [expr {$max - 1}]]]set voiceList [lrange $voiceList $max end]incr len -$max} else {set users [join $voiceList]set len 0}putserv "NOTICE $nick [join $users ","]"}puthelp "NOTICE $nick :ALL non Voiced/opped/halfopped users on $chan."} else {puthelp "NOTICE $nick :No Voiced/opped/halfopped on $chan."}}</code></pre></div>so output  meaning the putserv "NOTICE $nick [join $users ","]"<br><br>thnx in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Apr 27, 2020 8:15 am</p><hr />
]]></content>
	</entry>
	</feed>
