about summary refs log tree commit diff stats
path: root/src/xmpp/iq.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmpp/iq.c')
-rw-r--r--src/xmpp/iq.c4
1 files 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;
 }