mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-24 22:26:22 +00:00
Implemented /script show
This commit is contained in:
@@ -1599,6 +1599,24 @@ cons_show_scripts(GSList *scripts)
|
||||
cons_alert();
|
||||
}
|
||||
|
||||
void
|
||||
cons_show_script(const char *const script, GSList *commands)
|
||||
{
|
||||
cons_show("");
|
||||
|
||||
if (commands == NULL) {
|
||||
cons_show("Script not found: %s", script);
|
||||
} else {
|
||||
cons_show("%s:", script);
|
||||
while (commands) {
|
||||
cons_show(" %s", commands->data);
|
||||
commands = g_slist_next(commands);
|
||||
}
|
||||
}
|
||||
|
||||
cons_alert();
|
||||
}
|
||||
|
||||
void
|
||||
cons_prefs(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user