diff options
author | James Booth <boothj5@gmail.com> | 2018-01-28 00:13:36 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2018-01-28 00:13:36 +0000 |
commit | a04b02c928baa5d525b879f72cd1acec93d1286a (patch) | |
tree | d2b57985118c292bb12ece4c527fcb4ecb06fae9 /src | |
parent | e571ccd8ea5a60b25a4b8c52d0ae62bec95e027c (diff) | |
download | profani-tty-a04b02c928baa5d525b879f72cd1acec93d1286a.tar.gz |
Include filter string in no rooms message
Diffstat (limited to 'src')
-rw-r--r-- | src/xmpp/iq.c | 4 |
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; } |