From a04b02c928baa5d525b879f72cd1acec93d1286a Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 28 Jan 2018 00:13:36 +0000 Subject: [PATCH] Include filter string in no rooms message --- src/xmpp/iq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c index 0a48dbb7..a4be75b3 100644 --- a/src/xmpp/iq.c +++ b/src/xmpp/iq.c @@ -921,7 +921,6 @@ _room_list_id_handler(xmpp_stanza_t *const stanza, void *const userdata) gchar *filter = (gchar*)userdata; if (filter != NULL) { glob = g_pattern_spec_new(filter); - g_free(filter); } gboolean matched = FALSE; @@ -952,10 +951,11 @@ _room_list_id_handler(xmpp_stanza_t *const stanza, void *const userdata) } if (glob && matched == FALSE) { - cons_show(" No rooms found matching pattern."); + cons_show(" No rooms found matching pattern: %s", filter); } g_pattern_spec_free(glob); + g_free(filter); return 0; }