Implemented /script list

This commit is contained in:
James Booth
2015-10-17 22:30:01 +01:00
parent 0769fc6b1b
commit a35cbea732
7 changed files with 53 additions and 5 deletions

View File

@@ -1581,6 +1581,24 @@ cons_show_themes(GSList *themes)
cons_alert();
}
void
cons_show_scripts(GSList *scripts)
{
cons_show("");
if (scripts == NULL) {
cons_show("No scripts available.");
} else {
cons_show("Scripts:");
while (scripts) {
cons_show(scripts->data);
scripts = g_slist_next(scripts);
}
}
cons_alert();
}
void
cons_prefs(void)
{

View File

@@ -278,6 +278,7 @@ void cons_show_status(const char * const barejid);
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_aliases(GList *aliases);
void cons_show_login_success(ProfAccount *account, int secured);
void cons_show_software_version(const char * const jid,