summaryrefslogtreecommitdiff
path: root/src/core/nicklist.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-03-07 23:55:33 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-03-07 23:55:33 +0000
commit00abe69923f124555f50e129249acb7d4265fea7 (patch)
tree81038653b08c929c724eab5a855ea866a93e7a09 /src/core/nicklist.c
parent21ce8803d6f124b9889e5d2aa9458f538f17eb7f (diff)
downloadirssi-00abe69923f124555f50e129249acb7d4265fea7.zip
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
Diffstat (limited to 'src/core/nicklist.c')
-rw-r--r--src/core/nicklist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/nicklist.c b/src/core/nicklist.c
index 387394aa..9689a132 100644
--- a/src/core/nicklist.c
+++ b/src/core/nicklist.c
@@ -63,7 +63,7 @@ static void nick_hash_remove(CHANNEL_REC *channel, NICK_REC *nick)
if (list->next == NULL)
g_hash_table_remove(channel->nicks, nick->nick);
else if (list == nick) {
- g_hash_table_insert(channel->nicks, nick->nick,
+ g_hash_table_insert(channel->nicks, nick->next->nick,
nick->next);
} else {
while (list->next != nick)