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

Default /autoaway check on

This commit is contained in:
James Booth 2012-12-01 18:55:48 +00:00
parent 5a0121306d
commit 8400ae29ba

View File

@ -400,7 +400,11 @@ prefs_set_autoaway_message(gchar *value)
gboolean
prefs_get_autoaway_check(void)
{
return g_key_file_get_boolean(prefs, "autoaway", "check", NULL);
if (g_key_file_has_key(prefs, "autoaway", "check", NULL)) {
return g_key_file_get_boolean(prefs, "autoaway", "check", NULL);
} else {
return TRUE;
}
}
void