about summary refs log tree commit diff stats
path: root/src/command/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/commands.c')
-rw-r--r--src/command/commands.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index 53a2b1a3..853fee39 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -2653,7 +2653,8 @@ cmd_otr(gchar **args, struct cmd_help_t help)
                 if (!otr_key_loaded()) {
                     ui_current_print_formatted_line('!', 0, "You have not generated or loaded a private key, use '/otr gen'");
                 } else if (!otr_is_secure(barejid)) {
-                    message_send("?OTR?", barejid);
+                    char *otr_query_message = otr_start_query();
+                    message_send(otr_query_message, barejid);
                 } else {
                     ui_gone_secure(barejid, otr_is_trusted(barejid));
                 }
@@ -2670,7 +2671,8 @@ cmd_otr(gchar **args, struct cmd_help_t help)
                     ui_current_print_formatted_line('!', 0, "You have not generated or loaded a private key, use '/otr gen'");
                 } else {
                     char *recipient = ui_current_recipient();
-                    message_send("?OTR?", recipient);
+                    char *otr_query_message = otr_start_query();
+                    message_send(otr_query_message, recipient);
                 }
             }
         }