diff options
Diffstat (limited to 'src/irc/core/channels-query.c')
-rw-r--r-- | src/irc/core/channels-query.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/irc/core/channels-query.c b/src/irc/core/channels-query.c index ae6c4f71..96f17f4d 100644 --- a/src/irc/core/channels-query.c +++ b/src/irc/core/channels-query.c @@ -128,7 +128,8 @@ static void sig_channel_destroyed(IRC_CHANNEL_REC *channel) { g_return_if_fail(channel != NULL); - if (channel->server != NULL && !channel->synced) + if (IS_IRC_CHANNEL(channel) && channel->server != NULL && + !channel->synced) channel_query_remove_all(channel); } |