mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
removing second last unique nick didn't work properly
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1359 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
21ce8803d6
commit
00abe69923
@ -63,7 +63,7 @@ static void nick_hash_remove(CHANNEL_REC *channel, NICK_REC *nick)
|
|||||||
if (list->next == NULL)
|
if (list->next == NULL)
|
||||||
g_hash_table_remove(channel->nicks, nick->nick);
|
g_hash_table_remove(channel->nicks, nick->nick);
|
||||||
else if (list == nick) {
|
else if (list == nick) {
|
||||||
g_hash_table_insert(channel->nicks, nick->nick,
|
g_hash_table_insert(channel->nicks, nick->next->nick,
|
||||||
nick->next);
|
nick->next);
|
||||||
} else {
|
} else {
|
||||||
while (list->next != nick)
|
while (list->next != nick)
|
||||||
|
Loading…
Reference in New Issue
Block a user