summaryrefslogtreecommitdiff
path: root/src/core/nicklist.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-03-10 23:33:56 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-03-10 23:33:56 +0000
commit93397f3fe04f6278bbfc98b1de1ca483b23d15f5 (patch)
tree9df8bcf31c8021ea6d2885ee441bcfd9b47391fb /src/core/nicklist.c
parent118aa7e88e441b31ef30bcf0876c61c367fbfaf9 (diff)
downloadirssi-93397f3fe04f6278bbfc98b1de1ca483b23d15f5.zip
buggy fix, fixed :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1377 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 c2ad44d8..f9539ff3 100644
--- a/src/core/nicklist.c
+++ b/src/core/nicklist.c
@@ -62,7 +62,7 @@ static void nick_hash_remove(CHANNEL_REC *channel, NICK_REC *nick)
if (list == nick || list->next == NULL) {
g_hash_table_remove(channel->nicks, nick->nick);
- if (list == nick) {
+ if (list->next != NULL) {
g_hash_table_insert(channel->nicks, nick->next->nick,
nick->next);
}