about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-10-27 23:12:46 +0000
committerJames Booth <boothj5@gmail.com>2015-10-27 23:12:46 +0000
commitdfd55d24cd06c151aeecaef442bfc94023826a2c (patch)
tree8f2f5010f6c9f41c5579724c62ecf0611ff6cea9
parentae890287727c8b3c6d9ea05bdf0621acbd4bc7bf (diff)
downloadprofani-tty-dfd55d24cd06c151aeecaef442bfc94023826a2c.tar.gz
Moved ui_handle_otr_error
-rw-r--r--src/ui/chatwin.c11
-rw-r--r--src/ui/core.c11
2 files changed, 11 insertions, 11 deletions
diff --git a/src/ui/chatwin.c b/src/ui/chatwin.c
index f0453a7c..b3ea45b1 100644
--- a/src/ui/chatwin.c
+++ b/src/ui/chatwin.c
@@ -180,17 +180,6 @@ chatwin_otr_untrust(ProfChatWin *chatwin)
 }
 
 void
-ui_handle_otr_error(const char *const barejid, const char *const message)
-{
-    ProfChatWin *chatwin = wins_get_chat(barejid);
-    if (chatwin) {
-        win_print((ProfWin*)chatwin, '!', 0, NULL, 0, THEME_ERROR, "", message);
-    } else {
-        cons_show_error("%s - %s", barejid, message);
-    }
-}
-
-void
 chatwin_recipient_gone(ProfChatWin *chatwin)
 {
     const char *display_usr = NULL;
diff --git a/src/ui/core.c b/src/ui/core.c
index ae446969..d8c9aa4e 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -550,6 +550,17 @@ ui_handle_recipient_error(const char *const recipient, const char *const err_msg
 }
 
 void
+ui_handle_otr_error(const char *const barejid, const char *const message)
+{
+    ProfChatWin *chatwin = wins_get_chat(barejid);
+    if (chatwin) {
+        win_print((ProfWin*)chatwin, '!', 0, NULL, 0, THEME_ERROR, "", message);
+    } else {
+        cons_show_error("%s - %s", barejid, message);
+    }
+}
+
+void
 ui_handle_error(const char *const err_msg)
 {
     GString *msg = g_string_new("");