about summary refs log tree commit diff stats
path: root/src/command/commands.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-02-23 01:17:03 +0000
committerJames Booth <boothj5@gmail.com>2014-02-23 01:17:03 +0000
commit66424565dd8a2eaf39e16446845bf1b7a18681ea (patch)
tree24496cf14dd30761b1e47d9d0274d2ab4114dc0e /src/command/commands.c
parent23281d67410e8cde05f6ba9895f72cc76ed987dc (diff)
downloadprofani-tty-66424565dd8a2eaf39e16446845bf1b7a18681ea.tar.gz
Show OTR status on /msg usr when usr has already started an OTR session
fixes #308
Diffstat (limited to 'src/command/commands.c')
-rw-r--r--src/command/commands.c5
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;
         }
     }