1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Set auto reconnect to 30 seconds by default

fixes #386
This commit is contained in:
James Booth 2014-07-29 15:40:51 +01:00
parent 9123675c9c
commit 816351d371

View File

@ -252,7 +252,11 @@ prefs_get_priority(void)
gint
prefs_get_reconnect(void)
{
return g_key_file_get_integer(prefs, PREF_GROUP_CONNECTION, "reconnect", NULL);
if (!g_key_file_has_key(prefs, PREF_GROUP_CONNECTION, "reconnect", NULL)) {
return 30;
} else {
return g_key_file_get_integer(prefs, PREF_GROUP_CONNECTION, "reconnect", NULL);
}
}
void