mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-26 00:26:21 +00:00
Show software version result in current window
This commit is contained in:
@@ -421,30 +421,6 @@ cons_show_caps(const char * const fulljid, resource_presence_t presence)
|
||||
cons_alert();
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
ProfWin *console = wins_get_console();
|
||||
if (name || version || os) {
|
||||
cons_show("");
|
||||
theme_item_t presence_colour = theme_main_presence_attrs(presence);
|
||||
win_vprint(console, '-', 0, NULL, NO_EOL, presence_colour, "", "%s", jid);
|
||||
win_print(console, '-', 0, NULL, NO_DATE, 0, "", ":");
|
||||
}
|
||||
if (name) {
|
||||
cons_show("Name : %s", name);
|
||||
}
|
||||
if (version) {
|
||||
cons_show("Version : %s", version);
|
||||
}
|
||||
if (os) {
|
||||
cons_show("OS : %s", os);
|
||||
}
|
||||
|
||||
cons_alert();
|
||||
}
|
||||
|
||||
void
|
||||
cons_show_received_subs(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user