about summary refs log tree commit diff stats
path: root/src/command/command.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-01-11 21:44:24 +0000
committerJames Booth <boothj5@gmail.com>2014-01-11 21:44:24 +0000
commitf35e485bd4d5b6bfa7997b48f5b1f9c13576e26b (patch)
treea0d62dc5fa9ef9991e1619e29d4306feb4d25f46 /src/command/command.c
parent5a7eba518d4193696051601e77d75dc3d9051567 (diff)
downloadprofani-tty-f35e485bd4d5b6bfa7997b48f5b1f9c13576e26b.tar.gz
Handle window creation for incoming and outgoing OTR sessions
Diffstat (limited to 'src/command/command.c')
-rw-r--r--src/command/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/command.c b/src/command/command.c
index eaa72197..9d028801 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -1141,7 +1141,7 @@ cmd_execute_default(const char * const inp)
                 ui_current_print_line("You are not currently connected.");
             } else {
 #ifdef HAVE_LIBOTR
-                if (ui_current_win_is_otr()) {
+                if (otr_is_secure(recipient)) {
                     char *encrypted = otr_encrypt_message(recipient, inp);
                     if (encrypted != NULL) {
                         message_send(encrypted, recipient);