From 45a1174000c23d0bfce5479835a831845ea951f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 8 Feb 2016 21:14:48 +0100 Subject: relay: fix the max number of clients connected on a port, allow value 0 for "no limit" (closes #669) --- src/plugins/relay/relay-config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/relay/relay-config.c') diff --git a/src/plugins/relay/relay-config.c b/src/plugins/relay/relay-config.c index ec1ec0474..6d12a24d4 100644 --- a/src/plugins/relay/relay-config.c +++ b/src/plugins/relay/relay-config.c @@ -748,8 +748,8 @@ relay_config_init () relay_config_network_max_clients = weechat_config_new_option ( relay_config_file, ptr_section, "max_clients", "integer", - N_("maximum number of clients connecting to a port"), - NULL, 1, 1024, "5", NULL, 0, + N_("maximum number of clients connecting to a port (0 = no limit)"), + NULL, 0, INT_MAX, "5", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL); relay_config_network_password = weechat_config_new_option ( relay_config_file, ptr_section, -- cgit v1.2.3