From 8119025120b0b511aea8bc3f477d2aff835bd24b Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 27 Jul 2015 00:04:48 +0100 Subject: Fixed tests for new command format --- src/muc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/muc.c b/src/muc.c index 4474976d..8bc530aa 100644 --- a/src/muc.c +++ b/src/muc.c @@ -166,7 +166,9 @@ void muc_invites_clear(void) { autocomplete_clear(invite_ac); - g_hash_table_remove_all(invite_passwords); + if (invite_passwords) { + g_hash_table_remove_all(invite_passwords); + } } void -- cgit 1.4.1-2-gfad0