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

@@ -1076,6 +1076,15 @@ cons_prefs(void)
cons_show("Reconnect interval : %d seconds", reconnect_interval);
}
gint autoping_interval = prefs_get_autoping();
if (autoping_interval == 0) {
cons_show("Autoping interval : OFF");
} else if (remind_period == 1) {
cons_show("Autoping interval : 1 second");
} else {
cons_show("Autoping interval : %d seconds", autoping_interval);
}
cons_show("");
if (current_index == 0) {