summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/irc/core/channel-events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/core/channel-events.c b/src/irc/core/channel-events.c
index b39c5c74..3856f9bd 100644
--- a/src/irc/core/channel-events.c
+++ b/src/irc/core/channel-events.c
@@ -48,7 +48,7 @@ static void event_cannot_join(IRC_SERVER_REC *server, const char *data)
g_free(channel);
}
- if (chanrec != NULL && !chanrec->names_got) {
+ if (chanrec != NULL && !chanrec->joined) {
chanrec->left = TRUE;
channel_destroy(chanrec);
}