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-27 01:17:38 +0100
committerJames Booth <boothj5@gmail.com>2014-04-27 01:17:38 +0100
commit2bc19f4669f820ff952a9d1b02055e93891d99b4 (patch)
tree649ef4dfc572ee81fd13f98a98a92de0e369e2aa /src/otr/otr.c
parentc39c093fa5bb7907143c6f06ee06a1a88ea788f1 (diff)
downloadprofani-tty-2bc19f4669f820ff952a9d1b02055e93891d99b4.tar.gz
Added SMP secret authentication success message
Diffstat (limited to 'src/otr/otr.c')
-rw-r--r--src/otr/otr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/otr/otr.c b/src/otr/otr.c
index e246748b..fe87eed8 100644
--- a/src/otr/otr.c
+++ b/src/otr/otr.c
@@ -407,9 +407,13 @@ _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();
         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();
     }
 }