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:36:11 +0000
committerJames Booth <boothj5@gmail.com>2015-10-26 23:36:11 +0000
commitd11f8d5ffc19ebaa2f7c1e3e44e18a92162cc0de (patch)
treefa02b8accadf0636791916d51759a5b1eabc58b8 /src/otr/otrlibv4.c
parent3ce55de1e172c37ba32cdb7b2200b8758e2c8459 (diff)
downloadprofani-tty-d11f8d5ffc19ebaa2f7c1e3e44e18a92162cc0de.tar.gz
ui_smp_unsuccessful_sender 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 59cd7a0d..ebdc2996 100644
--- a/src/otr/otrlibv4.c
+++ b/src/otr/otrlibv4.c
@@ -206,7 +206,9 @@ cb_handle_smp_event(void *opdata, OtrlSMPEvent smp_event,
         case OTRL_SMPEVENT_FAILURE:
             if (context->smstate->received_question == 0) {
                 if (nextMsg == OTRL_SMP_EXPECT3) {
-                    ui_smp_unsuccessful_sender(context->username);
+                    if (chatwin) {
+                        ui_smp_unsuccessful_sender(chatwin);
+                    }
                 } else if (nextMsg == OTRL_SMP_EXPECT4) {
                     ui_smp_unsuccessful_receiver(context->username);
                 }