mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
fix: filtering of the available global plugins
For command /plugins : Don't print files that do not correspond to the plugins design Signed-off-by: Viachaslau Khalikin <viachaslau.vinegret@outlook.com>
This commit is contained in:
parent
cc7231a43b
commit
0ceb8c53c3
@ -7247,14 +7247,16 @@ cmd_plugins(ProfWin* window, const char* const command, gchar** args)
|
|||||||
const gchar* filename;
|
const gchar* filename;
|
||||||
cons_show("The following Python plugins are available globally and can be installed:");
|
cons_show("The following Python plugins are available globally and can be installed:");
|
||||||
while ((filename = g_dir_read_name(global_pyp_dir))) {
|
while ((filename = g_dir_read_name(global_pyp_dir))) {
|
||||||
cons_show(" %s", filename);
|
if (g_str_has_suffix(filename, ".py"))
|
||||||
|
cons_show(" %s", filename);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (global_cp_dir) {
|
if (global_cp_dir) {
|
||||||
const gchar* filename;
|
const gchar* filename;
|
||||||
cons_show("The following C plugins are available globally and can be installed:");
|
cons_show("The following C plugins are available globally and can be installed:");
|
||||||
while ((filename = g_dir_read_name(global_cp_dir))) {
|
while ((filename = g_dir_read_name(global_cp_dir))) {
|
||||||
cons_show(" %s", filename);
|
if (g_str_has_suffix(filename, ".so"))
|
||||||
|
cons_show(" %s", filename);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user