about summary refs log tree commit diff stats
path: root/src/otr/otr.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-04-30 22:41:53 +0100
committerJames Booth <boothj5@gmail.com>2014-04-30 22:41:53 +0100
commiteaa19598c1fa6fdc168e6cce12c56f348c26a227 (patch)
treef0af40c48cea3f62981d532283593ccb0a568210 /src/otr/otr.c
parent8994b3769c4b1af94b557e443339f845f8b9a9fd (diff)
downloadprofani-tty-eaa19598c1fa6fdc168e6cce12c56f348c26a227.tar.gz
Added ui functions for otr authentication
Diffstat (limited to 'src/otr/otr.c')
-rw-r--r--src/otr/otr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/otr/otr.c b/src/otr/otr.c
index 7fe3757f..2ad8e752 100644
--- a/src/otr/otr.c
+++ b/src/otr/otr.c
@@ -442,13 +442,11 @@ _otr_smp_secret(const char * const recipient, const char *secret)
     // if recipient initiated SMP, send response, else initialise
     if (g_hash_table_contains(smp_initiators, recipient)) {
         otrl_message_respond_smp(user_state, &ops, NULL, context, (const unsigned char*)secret, strlen(secret));
-        ui_current_print_formatted_line('!', 0, "Authenticating %s...", recipient);
-        ui_current_page_off();
+        ui_otr_authenticating(recipient);
         g_hash_table_remove(smp_initiators, context->username);
     } else {
         otrl_message_initiate_smp(user_state, &ops, NULL, context, (const unsigned char*)secret, strlen(secret));
-        ui_current_print_formatted_line('!', 0, "Awaiting authentication from %s...", recipient);
-        ui_current_page_off();
+        ui_otr_authetication_waiting(recipient);
     }
 }