aboutsummaryrefslogtreecommitdiffstats
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/bee_chat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/bee_chat.c b/protocols/bee_chat.c
index 0314cae5..349e0547 100644
--- a/protocols/bee_chat.c
+++ b/protocols/bee_chat.c
@@ -195,7 +195,7 @@ void imcb_chat_remove_buddy( struct groupchat *c, const char *handle, const char
bu = bee_user_by_handle( bee, ic, handle );
}
- if( bee->ui->chat_remove_user )
+ if( bee->ui->chat_remove_user && bu )
bee->ui->chat_remove_user( bee, c, bu );
}