about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-12-29 23:00:49 +0000
committerJames Booth <boothj5@gmail.com>2015-12-29 23:00:49 +0000
commit8ea228480c0c991814d057b2fe380396d3da4381 (patch)
treeb8fc215c6be78386a1e588e54f9b6a300f415b05 /src/config
parent377a63d038be41986106c115e658ab199c570109 (diff)
downloadprofani-tty-8ea228480c0c991814d057b2fe380396d3da4381.tar.gz
Added console MUC message preference
Diffstat (limited to 'src/config')
-rw-r--r--src/config/preferences.c5
-rw-r--r--src/config/preferences.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index 088fb527..bf576864 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -1034,6 +1034,7 @@ _get_group(preference_t pref)
         case PREF_ENC_WARN:
         case PREF_INPBLOCK_DYNAMIC:
         case PREF_TLS_SHOW:
+        case PREF_CONSOLE_MUC:
             return PREF_GROUP_UI;
         case PREF_STATES:
         case PREF_OUTTYPE:
@@ -1238,6 +1239,8 @@ _get_key(preference_t pref)
             return "tls.show";
         case PREF_LASTACTIVITY:
             return "lastactivity";
+        case PREF_CONSOLE_MUC:
+            return "console.muc";
         default:
             return NULL;
     }
@@ -1324,6 +1327,8 @@ _get_default_string(preference_t pref)
             return "%d/%m/%y %H:%M:%S";
         case PREF_PGP_LOG:
             return "redact";
+        case PREF_CONSOLE_MUC:
+            return "all";
         default:
             return NULL;
     }
diff --git a/src/config/preferences.h b/src/config/preferences.h
index 910245c1..03d59e76 100644
--- a/src/config/preferences.h
+++ b/src/config/preferences.h
@@ -123,6 +123,7 @@ typedef enum {
     PREF_TLS_CERTPATH,
     PREF_TLS_SHOW,
     PREF_LASTACTIVITY,
+    PREF_CONSOLE_MUC,
 } preference_t;
 
 typedef struct prof_alias_t {