about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-01-11 17:15:07 +0000
committerJames Booth <boothj5@gmail.com>2014-01-11 17:15:07 +0000
commitd189f7ea43e0978b33ad0d4ed3dbcf95774c4598 (patch)
treefd910040cd26b14c43411f61ccc94a5e256b8cce /src
parent9daefe170d7fa1f50620acdd0a9073b98ba373f9 (diff)
downloadprofani-tty-d189f7ea43e0978b33ad0d4ed3dbcf95774c4598.tar.gz
Use version 1 query to start OTR session
Diffstat (limited to 'src')
-rw-r--r--src/command/commands.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index 6b0b38f9..e9e70063 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -2327,6 +2327,8 @@ cmd_otr(gchar **args, struct cmd_help_t help)
                 ui_current_print_line("You have not generated or loaded a private key, use '/otr gen'");
             } else {
                 ui_current_print_line("Starting OTR session");
+                char *recipient = ui_current_recipient();
+                message_send("?OTR?", recipient);
                 ui_current_set_otr(TRUE);
             }
         }