Implemented /script show

This commit is contained in:
James Booth
2015-10-17 22:58:45 +01:00
parent a35cbea732
commit eca7390951
6 changed files with 64 additions and 1 deletions

View File

@@ -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)
{