1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Add function prototype and make the default for the /statuses command be ON

This commit is contained in:
Backalor 2013-01-22 09:54:59 +09:00
parent a0a1f9017f
commit 9a58017385
2 changed files with 6 additions and 1 deletions

View File

@ -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_autoping(gchar **args, struct cmd_help_t help);
static gboolean _cmd_set_titlebar(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_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_vercheck(gchar **args, struct cmd_help_t help);
static gboolean _cmd_away(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); static gboolean _cmd_online(gchar **args, struct cmd_help_t help);

View File

@ -413,7 +413,11 @@ prefs_set_splash(gboolean value)
gboolean gboolean
prefs_get_statuses(void) prefs_get_statuses(void)
{ {
if (g_key_file_has_key(prefs, "ui", "statuses", NULL)) {
return g_key_file_get_boolean(prefs, "ui", "statuses", NULL); return g_key_file_get_boolean(prefs, "ui", "statuses", NULL);
} else {
return TRUE;
}
} }
void void