aboutsummaryrefslogtreecommitdiffstats
path: root/irc_im.c
diff options
context:
space:
mode:
Diffstat (limited to 'irc_im.c')
-rw-r--r--irc_im.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/irc_im.c b/irc_im.c
index 7fa70350..6c8b7f70 100644
--- a/irc_im.c
+++ b/irc_im.c
@@ -529,7 +529,7 @@ static gboolean bee_irc_chat_remove_user( bee_t *bee, struct groupchat *c, bee_u
irc_t *irc = bee->ui_data;
irc_channel_t *ic = c->ui_data;
- if( ic == NULL )
+ if( ic == NULL || bu == NULL )
return FALSE;
/* TODO: Possible bug here: If a module removes $user here instead of just