diff options
author | James Booth <boothj5@gmail.com> | 2014-05-11 15:03:10 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-05-11 15:03:10 +0100 |
commit | e8d84abb46681b68931d68094ca56214450e0670 (patch) | |
tree | b1d7ad83b7a518455f46aafbd5e6de38f4e4da49 /src/command/commands.c | |
parent | 95ff13136bfd84342074a606d7d6676a3c70d1e8 (diff) | |
download | profani-tty-e8d84abb46681b68931d68094ca56214450e0670.tar.gz |
Moved OTR policy check to otr module
Diffstat (limited to 'src/command/commands.c')
-rw-r--r-- | src/command/commands.c | 2 |
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"); |