Moved cons_show_software_version() to console module

This commit is contained in:
James Booth
2013-04-21 00:50:38 +01:00
parent d5bb600a04
commit b9dedbdc15
2 changed files with 28 additions and 23 deletions

View File

@@ -1106,29 +1106,6 @@ win_show_room_broadcast(const char * const room_jid, const char * const message)
}
}
void
cons_show_software_version(const char * const jid, const char * const presence,
const char * const name, const char * const version, const char * const os)
{
if ((name != NULL) || (version != NULL) || (os != NULL)) {
cons_show("");
window_show_time(console, '-');
window_presence_colour_on(console, presence);
wprintw(console->win, "%s", jid);
window_presence_colour_off(console, presence);
wprintw(console->win, ":\n");
}
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_room_list(GSList *rooms, const char * const conference_node)
{