diff options
author | James Booth <boothj5@gmail.com> | 2015-08-05 00:26:29 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-08-05 00:26:29 +0100 |
commit | 2a92169351f88ab3bfe1acf15628878c5e8ef520 (patch) | |
tree | cfe4e15ac713ac2f1538591069860d86e3dbc2e8 /src/ui/core.c | |
parent | de747e3d46c1be9e3256716d8939148e0bc07a35 (diff) | |
download | profani-tty-2a92169351f88ab3bfe1acf15628878c5e8ef520.tar.gz |
Use id handler for software version requests, handle errors
Diffstat (limited to 'src/ui/core.c')
-rw-r--r-- | src/ui/core.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ui/core.c b/src/ui/core.c index bbaebe31..9cbd873a 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -2792,6 +2792,24 @@ ui_hide_roster(void) } } +void +ui_handle_software_version_error(const char * const roomjid, const char * const message) +{ + GString *message_str = g_string_new(""); + + ProfWin *window = wins_get_console(); + g_string_printf(message_str, "Could not get software version"); + + if (message) { + g_string_append(message_str, ": "); + g_string_append(message_str, message); + } + + win_print(window, '-', 0, NULL, 0, THEME_ERROR, "", message_str->str); + + g_string_free(message_str, TRUE); +} + static void _win_show_history(ProfChatWin *chatwin, const char * const contact) { |