diff options
author | James Booth <boothj5@gmail.com> | 2014-02-23 01:17:03 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-02-23 01:17:03 +0000 |
commit | 66424565dd8a2eaf39e16446845bf1b7a18681ea (patch) | |
tree | 24496cf14dd30761b1e47d9d0274d2ab4114dc0e /src | |
parent | 23281d67410e8cde05f6ba9895f72cc76ed987dc (diff) | |
download | profani-tty-66424565dd8a2eaf39e16446845bf1b7a18681ea.tar.gz |
Show OTR status on /msg usr when usr has already started an OTR session
fixes #308
Diffstat (limited to 'src')
-rw-r--r-- | src/command/commands.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/command/commands.c b/src/command/commands.c index 853fee39..d8eaa28a 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -1066,6 +1066,11 @@ cmd_msg(gchar **args, struct cmd_help_t help) } ui_new_chat_win(usr_jid); +#ifdef HAVE_LIBOTR + if (otr_is_secure(jid)) { + ui_gone_secure(jid, otr_is_trusted(jid)); + } +#endif return TRUE; } } |