1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 22:06:38 +02:00

Fixed sort bug (nicks are now correctly sorted: op, halfop, voice, other)

This commit is contained in:
Sebastien Helleu
2003-10-12 09:20:22 +00:00
parent 7a8edd3cea
commit 509c5738ff
4 changed files with 6 additions and 4 deletions
+1
View File
@@ -5,6 +5,7 @@ ChangeLog - 2003-10-12
Version 0.0.3 (under dev!):
* nicks are now correctly sorted (op, halfop, voice, other)
* fixed crash when entering text without any server connection
* fixed display bug (text was blinking when scrolling)
* french translation
+2 -2
View File
@@ -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)
+1
View File
@@ -5,6 +5,7 @@ ChangeLog - 2003-10-12
Version 0.0.3 (under dev!):
* nicks are now correctly sorted (op, halfop, voice, other)
* fixed crash when entering text without any server connection
* fixed display bug (text was blinking when scrolling)
* french translation
+2 -2
View File
@@ -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)