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

Default autoping to 1 minute #541

This commit is contained in:
James Booth 2015-07-02 00:10:31 +01:00
parent fb8b223876
commit 84a8da7741

View File

@ -281,7 +281,11 @@ prefs_set_reconnect(gint value)
gint
prefs_get_autoping(void)
{
return g_key_file_get_integer(prefs, PREF_GROUP_CONNECTION, "autoping", NULL);
if (!g_key_file_has_key(prefs, PREF_GROUP_CONNECTION, "autoping", NULL)) {
return 60;
} else {
return g_key_file_get_integer(prefs, PREF_GROUP_CONNECTION, "autoping", NULL);
}
}
void