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:
parent
a0a1f9017f
commit
9a58017385
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user