From 1841311e6302ff88e53446744e571bed703d2087 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Fri, 31 May 2024 09:02:44 +0200 Subject: Change char_conf.max_connect_user back to signed integer This configuration variable changed from signed to unsigned with the move to Python-generated config file parsing in e1418f378c66343a35db3791cbf0d54a4be3fbd3 and c482e420bcf447073ffe3ff8a106a0561e0baadd. Changing it back to signed because it is compared to a signed integer returned from count_users. Also, having it as signed integer allows setting it to a negative value to refuse any user connection. --- tools/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/config.py b/tools/config.py index 2f0781d..f87fe77 100755 --- a/tools/config.py +++ b/tools/config.py @@ -544,7 +544,7 @@ def build_config(): char_conf.opt('char_ip', IP4Address, '{}') char_conf.opt('char_port', u16, '6121', min='1024') char_conf.opt('char_txt', RString, '{}') - char_conf.opt('max_connect_user', u32, '0') + char_conf.opt('max_connect_user', i32, '0') char_conf.opt('autosave_time', seconds, 'DEFAULT_AUTOSAVE_INTERVAL', {char_h}, min='1_s') char_conf.opt('start_point', Point, '{ {"001-1.gat"_s}, 273, 354 }') char_conf.opt('unknown_char_name', CharName, 'stringish("Unknown"_s)') -- cgit v1.2.3-70-g09d2