diff options
author | James Booth <boothj5@gmail.com> | 2012-11-26 23:58:24 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-11-26 23:58:24 +0000 |
commit | 213ccc0150ab50084ddb80721a38a552fff76686 (patch) | |
tree | d07f4814ce714f5a4461afcc88f345b8e6c43f57 /src/windows.c | |
parent | 791667fa8656408df230066e743a756cd7270100 (diff) | |
download | profani-tty-213ccc0150ab50084ddb80721a38a552fff76686.tar.gz |
Added /autoping command to set ping interval or disable with 0
Diffstat (limited to 'src/windows.c')
-rw-r--r-- | src/windows.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/windows.c b/src/windows.c index 4f59d0c3..64a18bd6 100644 --- a/src/windows.c +++ b/src/windows.c @@ -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) { |