summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-05-31 09:02:44 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-05-31 09:03:05 +0200
commit1841311e6302ff88e53446744e571bed703d2087 (patch)
treef187eaa4f505c9a03dca0d27fda2f8990da5521c /tools
parent11d75ebaae614e082055aaf7e6075e7c27bf9368 (diff)
downloadtmwa-1841311e6302ff88e53446744e571bed703d2087.tar.gz
tmwa-1841311e6302ff88e53446744e571bed703d2087.tar.bz2
tmwa-1841311e6302ff88e53446744e571bed703d2087.tar.xz
tmwa-1841311e6302ff88e53446744e571bed703d2087.zip
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.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/config.py2
1 files changed, 1 insertions, 1 deletions
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<CharName>("Unknown"_s)')