summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/irc/core/mode-lists.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/irc/core/mode-lists.c b/src/irc/core/mode-lists.c
index b3c3e248..3f98b73b 100644
--- a/src/irc/core/mode-lists.c
+++ b/src/irc/core/mode-lists.c
@@ -162,7 +162,8 @@ void invitelist_remove(IRC_CHANNEL_REC *channel, const char *mask)
static void channel_destroyed(IRC_CHANNEL_REC *channel)
{
- g_return_if_fail(channel != NULL);
+ if (!IS_IRC_CHANNEL(channel))
+ return;
banlist_free(channel->banlist);
banlist_free(channel->ebanlist);