diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2003-10-12 09:20:22 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2003-10-12 09:20:22 +0000 |
commit | 509c5738ff0ca90bec7d77425769002f580c85c2 (patch) | |
tree | 35a2405c155f1c06f90092c4bb7e626fddbe610a /src | |
parent | 7a8edd3cea54e0be16fa135956e7aa98871ec8ee (diff) | |
download | weechat-509c5738ff0ca90bec7d77425769002f580c85c2.zip |
Fixed sort bug (nicks are now correctly sorted: op, halfop, voice, other)
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/irc-nick.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/irc-nick.c b/src/irc/irc-nick.c index 1f9faf3b3..ef0814e4e 100644 --- a/src/irc/irc-nick.c +++ b/src/irc/irc-nick.c @@ -79,8 +79,8 @@ nick_compare (t_irc_nick *nick1, t_irc_nick *nick2) { int score1, score2, comp; - score1 = - ( (nick1->is_op * 3) + (nick1->is_halfop * 2) + nick1->has_voice ); - score2 = - ( (nick2->is_op * 3) + (nick2->is_halfop * 2) + nick2->has_voice ); + score1 = - ( (nick1->is_op * 4) + (nick1->is_halfop * 3) + (nick1->has_voice * 2)); + score2 = - ( (nick2->is_op * 4) + (nick2->is_halfop * 3) + (nick2->has_voice * 2)); comp = strcasecmp(nick1->nick, nick2->nick); if (comp > 0) |