mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Default autoping to 1 minute #541
This commit is contained in:
parent
fb8b223876
commit
84a8da7741
@ -281,7 +281,11 @@ prefs_set_reconnect(gint value)
|
|||||||
gint
|
gint
|
||||||
prefs_get_autoping(void)
|
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
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user