From 49022068efc35709db9c6bb7ca9c0c546db7673c Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 15 Mar 2015 01:26:09 +0000 Subject: Added OTR error messages --- src/ui/core.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/ui/core.c') diff --git a/src/ui/core.c b/src/ui/core.c index 967a379f..3a65b270 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -1107,6 +1107,17 @@ ui_otr_authetication_waiting(const char * const barejid) } } +void +ui_handle_otr_error(const char * const barejid, const char * const message) +{ + ProfChatWin *chatwin = wins_get_chat(barejid); + if (chatwin) { + win_save_print((ProfWin*)chatwin, '!', NULL, 0, THEME_ERROR, "", message); + } else { + cons_show_error(message); + } +} + void ui_trust(const char * const barejid) { -- cgit 1.4.1-2-gfad0