about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-02-24 22:58:19 +0000
committerJames Booth <boothj5@gmail.com>2015-02-24 22:58:19 +0000
commit7ae71391de29eb38557df58b1b90b66eb0ecc6ef (patch)
treed27879caf64286d894f454ec5e19d8eda1076a6a /src
parent9a408024d320f95c0a9d3b38bc18eaa6bb7bcbba (diff)
parent68a8ab3401046d4e8b62a8e0081db2b156f0c5b1 (diff)
downloadprofani-tty-7ae71391de29eb38557df58b1b90b66eb0ecc6ef.tar.gz
Merge branch 'master' into readline
Diffstat (limited to 'src')
-rw-r--r--src/config/preferences.c17
-rw-r--r--src/ui/console.c3
2 files changed, 16 insertions, 4 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index a1f82940..d5bd64d3 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -358,7 +358,7 @@ prefs_get_occupants_size(void)
     gint result = g_key_file_get_integer(prefs, PREF_GROUP_UI, "occupants.size", NULL);
 
     if (result > 99 || result < 1) {
-        return 20;
+        return 15;
     } else {
         return result;
     }
@@ -377,7 +377,7 @@ prefs_get_roster_size(void)
     gint result = g_key_file_get_integer(prefs, PREF_GROUP_UI, "roster.size", NULL);
 
     if (result > 99 || result < 1) {
-        return 20;
+        return 25;
     } else {
         return result;
     }
@@ -691,15 +691,24 @@ _get_default_boolean(preference_t pref)
         case PREF_AUTOAWAY_CHECK:
         case PREF_LOG_ROTATE:
         case PREF_LOG_SHARED:
+        case PREF_NOTIFY_MESSAGE:
         case PREF_NOTIFY_MESSAGE_CURRENT:
         case PREF_NOTIFY_ROOM_CURRENT:
+        case PREF_NOTIFY_TYPING:
         case PREF_NOTIFY_TYPING_CURRENT:
+        case PREF_NOTIFY_SUB:
+        case PREF_NOTIFY_INVITE:
         case PREF_SPLASH:
         case PREF_OCCUPANTS:
         case PREF_MUC_PRIVILEGES:
         case PREF_PRESENCE:
         case PREF_WRAP:
         case PREF_INPBLOCK_DYNAMIC:
+        case PREF_RESOURCE_TITLE:
+        case PREF_RESOURCE_MESSAGE:
+        case PREF_ROSTER:
+        case PREF_ROSTER_OFFLINE:
+        case PREF_ROSTER_RESOURCE:
             return TRUE;
         default:
             return FALSE;
@@ -715,7 +724,7 @@ _get_default_string(preference_t pref)
     {
         case PREF_AUTOAWAY_MODE:
         case PREF_NOTIFY_ROOM:
-            return "off";
+            return "on";
         case PREF_OTR_LOG:
             return "redact";
         case PREF_OTR_POLICY:
@@ -725,7 +734,7 @@ _get_default_string(preference_t pref)
         case PREF_STATUSES_MUC:
             return "all";
         case PREF_ROSTER_BY:
-            return "none";
+            return "presence";
         case PREF_TIME:
             return "seconds";
         default:
diff --git a/src/ui/console.c b/src/ui/console.c
index 0dea457c..eefcb380 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -1003,6 +1003,9 @@ cons_roster_setting(void)
     else
         cons_show("Roster resource (/roster)     : hide");
 
+    char *by = prefs_get_string(PREF_ROSTER_BY);
+    cons_show("Roster by (/roster)           : %s", by);
+
     int size = prefs_get_roster_size();
     cons_show("Roster size (/roster)         : %d", size);
 }