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:29:01 +0000
committerJames Booth <boothj5@gmail.com>2015-10-26 23:29:01 +0000
commit3ce55de1e172c37ba32cdb7b2200b8758e2c8459 (patch)
treeec1197e162a016e44e39432581d0d82eef01eaee /src/otr/otrlibv4.c
parent55e857d6a8ccd3c5f993ac867c864e7b22be1645 (diff)
downloadprofani-tty-3ce55de1e172c37ba32cdb7b2200b8758e2c8459.tar.gz
ui_smp_recipient_initiated_q 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 1f2c4057..59cd7a0d 100644
--- a/src/otr/otrlibv4.c
+++ b/src/otr/otrlibv4.c
@@ -189,7 +189,9 @@ cb_handle_smp_event(void *opdata, OtrlSMPEvent smp_event,
             break;
 
         case OTRL_SMPEVENT_ASK_FOR_ANSWER:
-            ui_smp_recipient_initiated_q(context->username, question);
+            if (chatwin) {
+                ui_smp_recipient_initiated_q(chatwin, question);
+            }
             break;
 
         case OTRL_SMPEVENT_SUCCESS: