Implemented /script list
This commit is contained in:
@@ -698,6 +698,10 @@ cmd_script(ProfWin *window, const char * const command, gchar **args)
|
||||
if (!res) {
|
||||
cons_show("Could not find script %s", args[1]);
|
||||
}
|
||||
} else if (g_strcmp0(args[0], "list") == 0) {
|
||||
GSList *scripts = scripts_list();
|
||||
cons_show_scripts(scripts);
|
||||
g_slist_free_full(scripts, g_free);
|
||||
} else {
|
||||
cons_bad_cmd_usage(command);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user