diff options
author | Backalor <backalor@backalor.com> | 2013-01-22 09:54:59 +0900 |
---|---|---|
committer | Backalor <backalor@backalor.com> | 2013-01-22 09:54:59 +0900 |
commit | 9a58017385f89e70ae820927cd2b2d8479b57cf4 (patch) | |
tree | c52d33b0ae49e22dd5fad924710f277136e893e9 | |
parent | a0a1f9017f01af9be6cac3280b47f9ae586b06ef (diff) | |
download | profani-tty-9a58017385f89e70ae820927cd2b2d8479b57cf4.tar.gz |
Add function prototype and make the default for the /statuses command be ON
-rw-r--r-- | src/command.c | 1 | ||||
-rw-r--r-- | src/preferences.c | 6 |
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 |