1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Include filter string in no rooms message

This commit is contained in:
James Booth 2018-01-28 00:13:36 +00:00
parent e571ccd8ea
commit a04b02c928

View File

@ -921,7 +921,6 @@ _room_list_id_handler(xmpp_stanza_t *const stanza, void *const userdata)
gchar *filter = (gchar*)userdata; gchar *filter = (gchar*)userdata;
if (filter != NULL) { if (filter != NULL) {
glob = g_pattern_spec_new(filter); glob = g_pattern_spec_new(filter);
g_free(filter);
} }
gboolean matched = FALSE; gboolean matched = FALSE;
@ -952,10 +951,11 @@ _room_list_id_handler(xmpp_stanza_t *const stanza, void *const userdata)
} }
if (glob && matched == FALSE) { 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_pattern_spec_free(glob);
g_free(filter);
return 0; return 0;
} }