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

	<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>2003-04-02T17:09:50-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-04-02T17:09:50-04:00</updated>

		<published>2003-04-02T17:09:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18463#p18463</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18463#p18463"/>
		<title type="html"><![CDATA[Sorting chanlist like mIRC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18463#p18463"><![CDATA[
<blockquote class="uncited"><div>Well put stdragon, not even I thought of that.</div></blockquote>That's why I'm the Revered One, and you're... well, the Revered One.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Wed Apr 02, 2003 5:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-04-02T17:00:55-04:00</updated>

		<published>2003-04-02T17:00:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18460#p18460</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18460#p18460"/>
		<title type="html"><![CDATA[Sorting chanlist like mIRC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18460#p18460"><![CDATA[
Well put stdragon, not even I thought of that. Twice I have attempted to create a filter commands, but been unsucessful. However, conversion (using string maps), should make the whole process easier, without having to convert before and after the sort, the mapping can take place on the fly using lsorts external sorter abilities.<br><div class="codebox"><p>Code: </p><pre><code>proc mircsort {list} {  return [lsort -command mircsortproc $list]}proc mircsortproc {f s} {  set map [list \[ \250 \] \251 \| \252]  set f [string map $map $f]  set s [string map $map $s]  return [string compare $f $s]}</code></pre></div>Use "mircsort" instead of lsort, and you should get a correct list back.<br><br>You only need to tweak and add to the mapping list, should any sorting changes be needed.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Apr 02, 2003 5:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-04-02T16:33:52-04:00</updated>

		<published>2003-04-02T16:33:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18459#p18459</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18459#p18459"/>
		<title type="html"><![CDATA[Sorting chanlist like mIRC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18459#p18459"><![CDATA[
Hey I just had another idea. Why not convert the brackets and pipes to some invalid nick chars, that are higher than 'z'. For instance, ascii code 250, 251, 252.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Wed Apr 02, 2003 4:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2003-02-19T09:12:30-04:00</updated>

		<published>2003-02-19T09:12:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16775#p16775</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16775#p16775"/>
		<title type="html"><![CDATA[Sorting chanlist like mIRC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16775#p16775"><![CDATA[
hm... don't know if this is possible in tcl, but i thought, you put the nicks in a second list and sort the nicks in the second list in lower-case. and then with that list, you sort the original list (with capital letters).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Wed Feb 19, 2003 9:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ProXy]]></name></author>
		<updated>2003-02-19T09:08:27-04:00</updated>

		<published>2003-02-19T09:08:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16774#p16774</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16774#p16774"/>
		<title type="html"><![CDATA[Sorting chanlist like mIRC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16774#p16774"><![CDATA[
Because for some user - like me - it is important to have so capital letters in their nicks. So I prefer -dictionary, there I only have some problems with brackets...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1729">ProXy</a> — Wed Feb 19, 2003 9:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2003-02-19T04:35:06-04:00</updated>

		<published>2003-02-19T04:35:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16770#p16770</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16770#p16770"/>
		<title type="html"><![CDATA[Sorting chanlist like mIRC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16770#p16770"><![CDATA[
why dont you convert all nicks to lower-case before sorting them?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Wed Feb 19, 2003 4:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ProXy]]></name></author>
		<updated>2003-02-18T08:12:21-04:00</updated>

		<published>2003-02-18T08:12:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16748#p16748</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16748#p16748"/>
		<title type="html"><![CDATA[Sorting chanlist like mIRC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16748#p16748"><![CDATA[
Well this script only would work if the second letters are NOT any of the special chars. So, I prefer using ASCII - the one error isn`t so bad - it would be much too difficult, to manage these right...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1729">ProXy</a> — Tue Feb 18, 2003 8:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ProXy]]></name></author>
		<updated>2003-02-17T23:51:29-04:00</updated>

		<published>2003-02-17T23:51:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16733#p16733</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16733#p16733"/>
		<title type="html"><![CDATA[Sorting chanlist like mIRC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16733#p16733"><![CDATA[
Thx, I will try this script tomorrow <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=1729">ProXy</a> — Mon Feb 17, 2003 11:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-02-17T21:44:41-04:00</updated>

		<published>2003-02-17T21:44:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16731#p16731</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16731#p16731"/>
		<title type="html"><![CDATA[Sorting chanlist like mIRC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16731#p16731"><![CDATA[
Well, after the list is sorted, you simply need to rearrange those sections of nicks. Something like:<br><div class="codebox"><p>Code: </p><pre><code>set brackets [list]set pipes [list]set normal [list]foreach nick $nicklist {  set fc [string index $nick 0]  if {$fc == {[} || $fc == {]}} {    lappend brackets $nick  } elseif {$fc == "|"} {    lappend pipes $nick  } else {    lappend normal $nick  }}set nicklist [concat $normal $brackets $pipes]</code></pre></div>(not tested)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon Feb 17, 2003 9:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ProXy]]></name></author>
		<updated>2003-02-17T21:10:06-04:00</updated>

		<published>2003-02-17T21:10:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16729#p16729</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16729#p16729"/>
		<title type="html"><![CDATA[Sorting chanlist like mIRC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16729#p16729"><![CDATA[
This still doesnt fix the problem: I have a user called ][CBS][Merlin. This user is still reported before all other users. In the mIRC-List he is below all normal letters, but in front of Pipes...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1729">ProXy</a> — Mon Feb 17, 2003 9:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-02-17T15:21:48-04:00</updated>

		<published>2003-02-17T15:21:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16718#p16718</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16718#p16718"/>
		<title type="html"><![CDATA[Sorting chanlist like mIRC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16718#p16718"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>[lsort -increasing -dictionary $somelist]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Mon Feb 17, 2003 3:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ProXy]]></name></author>
		<updated>2003-02-17T15:09:30-04:00</updated>

		<published>2003-02-17T15:09:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16713#p16713</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16713#p16713"/>
		<title type="html"><![CDATA[Sorting chanlist like mIRC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16713#p16713"><![CDATA[
-increasing also doesnt work, because capital letters where above lowercase letters. The Problem with OP and VOICE is no difficulty, the only problem is to get a list, equal to the mIRC list.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1729">ProXy</a> — Mon Feb 17, 2003 3:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-02-17T15:06:53-04:00</updated>

		<published>2003-02-17T15:06:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16711#p16711</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16711#p16711"/>
		<title type="html"><![CDATA[Sorting chanlist like mIRC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16711#p16711"><![CDATA[
The lsort command support the -command option.<br><br>You would need to create a command to attach to this, to sort as you wish.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Feb 17, 2003 3:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-02-17T14:58:34-04:00</updated>

		<published>2003-02-17T14:58:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16707#p16707</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16707#p16707"/>
		<title type="html"><![CDATA[Sorting chanlist like mIRC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16707#p16707"><![CDATA[
you have to add all the users to three different lists (assuming the server doesn't support % halfop, if it does you'll have to make four lists <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> ) one for oped, one for voiced and one for normal users, then you simply do <em class="text-italics">lsort -increasing $list</em> on it. Finally you join the lists into one with op's on top, then voice, then normal users...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Mon Feb 17, 2003 2:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ProXy]]></name></author>
		<updated>2003-02-17T14:27:59-04:00</updated>

		<published>2003-02-17T14:27:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16705#p16705</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16705#p16705"/>
		<title type="html"><![CDATA[Sorting chanlist like mIRC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16705#p16705"><![CDATA[
I want to write a script that sorts the chanlist like mirc does. The Problem is, that if i sort with -ascii, the its case sensitive. When i use -dictionary some brackets are in a wrong postiton, for example. mirc has the Pipe at the end, and [ or ] right before the pipes. With -dictionary the brackets are before all chars...<br><br>Is there a way to make the list like mIRC does...?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1729">ProXy</a> — Mon Feb 17, 2003 2:27 pm</p><hr />
]]></content>
	</entry>
	</feed>
