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 14:13:15 +0100
committerJames Booth <boothj5@gmail.com>2014-05-11 14:13:15 +0100
commit95ff13136bfd84342074a606d7d6676a3c70d1e8 (patch)
tree8ab5e3d03bfa53972e697fea7651a53e39d9e2f1 /src/command/commands.c
parentf2ebbdb8de2725eae21419f18dce3f4ecffb6687 (diff)
downloadprofani-tty-95ff13136bfd84342074a606d7d6676a3c70d1e8.tar.gz
Added OTR policy account preference
Diffstat (limited to 'src/command/commands.c')
-rw-r--r--src/command/commands.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index d2232155..aeae1f90 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -269,8 +269,9 @@ cmd_account(gchar **args, struct cmd_help_t help)
                     if ((g_strcmp0(value, "manual") != 0)
                             && (g_strcmp0(value, "opportunistic") != 0)
                             && (g_strcmp0(value, "always") != 0)) {
-                        cons_show("Invalid setting.");
+                        cons_show("OTR policy must be one of: manual, opportunistic or always.");
                     } else {
+                        accounts_set_otr_policy(account_name, value);
                         cons_show("Updated OTR policy for account %s: %s", account_name, value);
                         cons_show("");
                     }