Ok, so since 7.38, the 'Channels List' is no longer showing room modes and this is something that I utilize a lot.
So I got some help from a couple of board members here at the mIRC forum and ended up with the following as a replacement for the 'Channels List'
alias list {
if ($window(@Channel.List)) { window -c @Channel.List }
window -bk0sSzl -t27,34,50 +slx @Channel.List Segoe UI -10
.enable #list
!list $1-
}
;list off
raw *:*: {
if ($window(@Channel.List)) {
if ($numeric == 321) { close -l | halt }
if ($numeric == 322) { .aline @Channel.List $2 $chr(9) $3 $chr(9) $4 $chr(9) $5- | halt }
if ($numeric == 323) {
close -l
window -ab +x @Channel.List
filter -cteuww 2 9 @Channel.List @Channel.List
.disable #list
halt
}
}
}
;list end
menu @Channel.List {
dclick: {
tokenize 32 $line(@Channel.List,$1)
join $1
}
Join Channel: join $1
Show Users: names $1
}
It does everything I need it to, except I absolutely cannot make it sort the list on the number of users in channel, something that the regular /list does.
This is the line that *should* be sorting my list:
filter -cteuww 2 9 @Channel.List @Channel.List
But it seems to be reading the entire line as one word, and so is sorting on channel name, regardless of the specified token position.
I know that the next version of mIRC will have reverted the change that has necessitated my having this script. But I would still like to know how to make it sort as I feel it would be helpful to me when writing other custom windows.
Please, can someone help me? I'm not sure if I should even be using /filter.
Thanks in advance
Panda