From bced3d4b36c2080b6dee2c2aa14b64c8cf405cc5 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 17 Feb 2013 02:10:56 +0000 Subject: Added autocomplete for /software command --- src/ui/ui.h | 2 ++ src/ui/windows.c | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) (limited to 'src/ui') diff --git a/src/ui/ui.h b/src/ui/ui.h index 378cea69..14d03ef0 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -168,6 +168,8 @@ void cons_show_info(PContact pcontact); void cons_show_caps(PContact pcontact); void cons_show_themes(GSList *themes); void cons_show_login_success(ProfAccount *account); +void cons_show_software_version(const char * const jid, const char * const name, + const char * const version, const char * const os); // status bar actions void status_bar_refresh(void); diff --git a/src/ui/windows.c b/src/ui/windows.c index a7bf5eec..7a34b17a 100644 --- a/src/ui/windows.c +++ b/src/ui/windows.c @@ -1205,6 +1205,25 @@ cons_show_caps(PContact pcontact) } } +void +cons_show_software_version(const char * const jid, const char * const name, + const char * const version, const char * const os) +{ + if ((name != NULL) || (version != NULL) || (os != NULL)) { + cons_show(""); + cons_show("%s:", jid); + } + if (name != NULL) { + cons_show(" Name : %s", name); + } + if (version != NULL) { + cons_show(" Version : %s", version); + } + if (os != NULL) { + cons_show(" OS : %s", os); + } +} + void cons_show_status(const char * const contact) { -- cgit 1.4.1-2-gfad0