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:
parent
e571ccd8ea
commit
a04b02c928
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user