LOL.

I've attempted it, here's the start for now..

Code:
Raw 366:*: {
  if (!$hget($2)) { hmake $2 }
  hadd -m $+($2,.total) $nick($2,0)
  var %users. [ $+ [ $2 ] ] $nick($2,0)
  while (%users. [ $+ [ $2 ] ]) {
    hadd $2 $nick($2,%users. [ $+ [ $2 ] ])
    dec %users. [ $+ [ $2 ] ]
  }
}


Creates 2 hash tables, one for storing nicknames and the other for storing the number of users. Theoretically all you'd need to do now is keep the hash table with total nicks, when they leave (Part/Quit,etc...) remove their nicks. Create that alias to take the number of items from the number of total nicks.

But I've got to go to the gym now I'm afraid, I'll continue with it when I get back though. smile

-Andy