diff options
author | James Booth <boothj5@gmail.com> | 2015-03-15 01:26:09 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-03-15 01:26:09 +0000 |
commit | 49022068efc35709db9c6bb7ca9c0c546db7673c (patch) | |
tree | 5d356173264d921559647b65319569bb0c5eca2d /src/ui/core.c | |
parent | 385336c10b0026025d4cd3a32d0a9b1bc521469a (diff) | |
download | profani-tty-49022068efc35709db9c6bb7ca9c0c546db7673c.tar.gz |
Added OTR error messages
Diffstat (limited to 'src/ui/core.c')
-rw-r--r-- | src/ui/core.c | 11 |
1 files changed, 11 insertions, 0 deletions
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 @@ -1108,6 +1108,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) { ProfChatWin *chatwin = wins_get_chat(barejid); |