summaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-05-24 12:13:54 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-29 10:07:30 +0200
commit4144e949edf3b14c2d478aa0fcba1996942a03fa (patch)
treeb61dcacc1c7ac089d3cdf75b86fe88bb304d467e /src/table
parent08308d808c2ab3a6621762127eed6c46f16286c6 (diff)
downloadopenttd-4144e949edf3b14c2d478aa0fcba1996942a03fa.tar.xz
Fix: [Network] Prevent an empty server name to be set anywhere
Diffstat (limited to 'src/table')
-rw-r--r--src/table/settings.ini1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/table/settings.ini b/src/table/settings.ini
index 2b6187087..6a2cb5b14 100644
--- a/src/table/settings.ini
+++ b/src/table/settings.ini
@@ -3959,6 +3959,7 @@ length = NETWORK_NAME_LENGTH
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
guiflags = SGF_NETWORK_ONLY
def = nullptr
+pre_cb = NetworkValidateServerName
post_cb = [](auto) { UpdateClientConfigValues(); }
cat = SC_BASIC