summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2003-10-27 21:02:18 +0000
committerSebastien Helleu <flashcode@flashtux.org>2003-10-27 21:02:18 +0000
commita81f58f3f1ccf9d92fb05fe16e77bd117b35d114 (patch)
treec25212d34698d57d040d287288c0a26576c7dc14 /src
parent338e460be938713f63ba4ce1231c1b092abca140 (diff)
downloadweechat-a81f58f3f1ccf9d92fb05fe16e77bd117b35d114.zip
Fixed sort bug (op, halfop, voice, normal)
Diffstat (limited to 'src')
-rw-r--r--src/irc/irc-nick.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/irc-nick.c b/src/irc/irc-nick.c
index c0104a0d7..75dfde627 100644
--- a/src/irc/irc-nick.c
+++ b/src/irc/irc-nick.c
@@ -82,8 +82,8 @@ nick_compare (t_irc_nick *nick1, t_irc_nick *nick2)
{
int score1, score2, comp;
- 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));
+ score1 = - ( (nick1->is_op * 8) + (nick1->is_halfop * 4) + (nick1->has_voice * 2));
+ score2 = - ( (nick2->is_op * 8) + (nick2->is_halfop * 4) + (nick2->has_voice * 2));
comp = strcasecmp(nick1->nick, nick2->nick);
if (comp > 0)