mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 23:36:21 +00:00
Add function prototype and make the default for the /statuses command be ON
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user