diff options
author | James Booth <boothj5@gmail.com> | 2014-02-18 22:31:27 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-02-18 22:31:27 +0000 |
commit | 09472e43c46d29db160c3016a27c0c2293799a2e (patch) | |
tree | a76a87972c13af9a4b14bdd31eaf0f6af680a6c6 /src/command/commands.c | |
parent | 037ca818214dad46745576bf9af740f032ca0fc7 (diff) | |
download | profani-tty-09472e43c46d29db160c3016a27c0c2293799a2e.tar.gz |
Added OTR supported versions in initial start query message
Diffstat (limited to 'src/command/commands.c')
-rw-r--r-- | src/command/commands.c | 6 |
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); } } } |