Added /autoping command to set ping interval or disable with 0

This commit is contained in:
James Booth
2012-11-26 23:58:24 +00:00
parent 791667fa86
commit 213ccc0150
6 changed files with 79 additions and 4 deletions

View File

@@ -252,6 +252,19 @@ prefs_set_reconnect(gint value)
_save_prefs();
}
gint
prefs_get_autoping(void)
{
return g_key_file_get_integer(prefs, "jabber", "autoping", NULL);
}
void
prefs_set_autoping(gint value)
{
g_key_file_set_integer(prefs, "jabber", "autoping", value);
_save_prefs();
}
gboolean
prefs_get_vercheck(void)
{