about summary refs log tree commit diff stats
path: root/src/otr/otrlibv4.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-10-26 23:50:56 +0000
committerJames Booth <boothj5@gmail.com>2015-10-26 23:50:56 +0000
commit8bd74cefcf73772a52b40c919a1e70da90be8a33 (patch)
tree225fc4829a86c8ef951ee330286b3ebde8800039 /src/otr/otrlibv4.c
parent3cea2bc4f4ae6d57cf4cdead868c1e02311aca40 (diff)
downloadprofani-tty-8bd74cefcf73772a52b40c919a1e70da90be8a33.tar.gz
ui_smp_successful takes ProfChatWin
Diffstat (limited to 'src/otr/otrlibv4.c')
-rw-r--r--src/otr/otrlibv4.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/otr/otrlibv4.c b/src/otr/otrlibv4.c
index 089585fb..29d6d57a 100644
--- a/src/otr/otrlibv4.c
+++ b/src/otr/otrlibv4.c
@@ -196,7 +196,9 @@ cb_handle_smp_event(void *opdata, OtrlSMPEvent smp_event,
 
         case OTRL_SMPEVENT_SUCCESS:
             if (context->smstate->received_question == 0) {
-                ui_smp_successful(context->username);
+                if (chatwin) {
+                    ui_smp_successful(chatwin);
+                }
                 ui_trust(context->username);
             } else {
                 ui_smp_answer_success(context->username);