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-05-11 15:03:10 +0100
committerJames Booth <boothj5@gmail.com>2014-05-11 15:03:10 +0100
commite8d84abb46681b68931d68094ca56214450e0670 (patch)
treeb1d7ad83b7a518455f46aafbd5e6de38f4e4da49 /src/command/commands.c
parent95ff13136bfd84342074a606d7d6676a3c70d1e8 (diff)
downloadprofani-tty-e8d84abb46681b68931d68094ca56214450e0670.tar.gz
Moved OTR policy check to otr module
Diffstat (limited to 'src/command/commands.c')
-rw-r--r--src/command/commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index aeae1f90..03759b4b 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -1004,7 +1004,7 @@ cmd_msg(gchar **args, struct cmd_help_t help)
                     cons_show_error("Failed to encrypt and send message,");
                 }
             } else {
-                char *policy = prefs_get_string(PREF_OTR_POLICY);
+                char *policy = otr_get_policy(usr_jid);
 
                 if (strcmp(policy, "always") == 0) {
                     cons_show_error("Failed to send message. Please check OTR policy");