about summary refs log tree commit diff stats
path: root/src/ui/core.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-03-15 01:26:09 +0000
committerJames Booth <boothj5@gmail.com>2015-03-15 01:26:09 +0000
commit49022068efc35709db9c6bb7ca9c0c546db7673c (patch)
tree5d356173264d921559647b65319569bb0c5eca2d /src/ui/core.c
parent385336c10b0026025d4cd3a32d0a9b1bc521469a (diff)
downloadprofani-tty-49022068efc35709db9c6bb7ca9c0c546db7673c.tar.gz
Added OTR error messages
Diffstat (limited to 'src/ui/core.c')
-rw-r--r--src/ui/core.c11
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);