mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-22 23:16: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)
|
||||
{
|
||||
|
||||
@@ -279,6 +279,7 @@ void cons_show_info(PContact pcontact);
|
||||
void cons_show_caps(const char * const fulljid, resource_presence_t presence);
|
||||
void cons_show_themes(GSList *themes);
|
||||
void cons_show_scripts(GSList *scripts);
|
||||
void cons_show_script(const char *const script, GSList *commands);
|
||||
void cons_show_aliases(GList *aliases);
|
||||
void cons_show_login_success(ProfAccount *account, int secured);
|
||||
void cons_show_software_version(const char * const jid,
|
||||
|
||||
Reference in New Issue
Block a user