summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2016-05-14 12:58:21 +0200
committerPatrick Griffis <tingping@tingping.se>2016-06-29 15:42:11 -0400
commit6b2cc1d28b67dd352c4be775ba214ca864cc5500 (patch)
tree705ba7005f6c7c18a6c6e130c74b6c1dd0bff114 /src/common
parenta970c1ae2ef89ae691fc2104db0c2c4e512f58f3 (diff)
cfgfiles: Reinitialize timers on net_ping_timeout change
This ensures that changes will take effect without a restart.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/cfgfiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c
index 910e0781..675a4140 100644
--- a/src/common/cfgfiles.c
+++ b/src/common/cfgfiles.c
@@ -532,7 +532,7 @@ const struct prefs vars[] =
 	{"net_auto_reconnectonfail", P_OFFINT (hex_net_auto_reconnectonfail), TYPE_BOOL},
 #endif
 	{"net_bind_host", P_OFFSET (hex_net_bind_host), TYPE_STR},
-	{"net_ping_timeout", P_OFFINT (hex_net_ping_timeout), TYPE_INT},
+	{"net_ping_timeout", P_OFFINT (hex_net_ping_timeout), TYPE_INT, hexchat_reinit_timers},
 	{"net_proxy_auth", P_OFFINT (hex_net_proxy_auth), TYPE_BOOL},
 	{"net_proxy_host", P_OFFSET (hex_net_proxy_host), TYPE_STR},
 	{"net_proxy_pass", P_OFFSET (hex_net_proxy_pass), TYPE_STR},