about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorlightb <lightb@bigfoot>2014-04-19 04:00:41 -0400
committerlightb <lightb@bigfoot>2014-04-19 04:00:41 -0400
commit02b77cfa4e9b600c03c2fa79ab0e3fa55c33961f (patch)
treec94f656f74fcabdaae7adf4b3426fc92fdc8cbd1 /src/config
parent3303376b4209a7f6005332bd113642ad68ca3c1e (diff)
downloadprofani-tty-02b77cfa4e9b600c03c2fa79ab0e3fa55c33961f.tar.gz
Added PREF_OTR_POLICY to preferences.c -> key -> otr.policy
Added default value "manual" to PREF_OTR_POLICy -> preferences.c
Modified help string to reflect otr_policy, started checks on cmd_otr
Diffstat (limited to 'src/config')
-rw-r--r--src/config/preferences.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index 9cc91cb6..4c00597e 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -466,6 +466,8 @@ _get_key(preference_t pref)
             return "otr";
         case PREF_OTR_WARN:
             return "otr.warn";
+	case PREF_OTR_POLICY:
+	    return "otr.policy";
         case PREF_LOG_ROTATE:
             return "rotate";
         case PREF_LOG_SHARED:
@@ -500,6 +502,8 @@ _get_default_string(preference_t pref)
             return "off";
         case PREF_OTR_LOG:
             return "redact";
+	case PREF_OTR_POLICY:
+	    return "manual";
         case PREF_STATUSES_CONSOLE:
         case PREF_STATUSES_CHAT:
         case PREF_STATUSES_MUC: