about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/command.c1
-rw-r--r--src/preferences.c6
2 files changed, 6 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index 2543e2ca..f372bd3f 100644
--- a/src/command.c
+++ b/src/command.c
@@ -118,6 +118,7 @@ static gboolean _cmd_set_gone(gchar **args, struct cmd_help_t help);
 static gboolean _cmd_set_autoping(gchar **args, struct cmd_help_t help);
 static gboolean _cmd_set_titlebar(gchar **args, struct cmd_help_t help);
 static gboolean _cmd_set_autoaway(gchar **args, struct cmd_help_t help);
+static gboolean _cmd_set_statuses(gchar **args, struct cmd_help_t help);
 static gboolean _cmd_vercheck(gchar **args, struct cmd_help_t help);
 static gboolean _cmd_away(gchar **args, struct cmd_help_t help);
 static gboolean _cmd_online(gchar **args, struct cmd_help_t help);
diff --git a/src/preferences.c b/src/preferences.c
index c4283269..97a2041e 100644
--- a/src/preferences.c
+++ b/src/preferences.c
@@ -413,7 +413,11 @@ prefs_set_splash(gboolean value)
 gboolean
 prefs_get_statuses(void)
 {
-    return g_key_file_get_boolean(prefs, "ui", "statuses", NULL);
+    if (g_key_file_has_key(prefs, "ui", "statuses", NULL)) {
+        return g_key_file_get_boolean(prefs, "ui", "statuses", NULL);
+    } else {
+        return TRUE;
+    }
 }
 
 void