diff options
author | rubidium42 <rubidium@openttd.org> | 2021-05-29 19:47:58 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-05-30 00:01:49 +0200 |
commit | fd95736bac4ef79ba36cff18d09c039a1c713f80 (patch) | |
tree | e8c201ee2b47023a05678ecf2b4f154fdf6e2ca7 /src/network/network_gui.cpp | |
parent | f0e1cd01298237dc32413fb0c19e145c45baa2e8 (diff) | |
download | openttd-fd95736bac4ef79ba36cff18d09c039a1c713f80.tar.xz |
Codechange: [Network] Use std::string for server side logic of kicking and banning clients
Diffstat (limited to 'src/network/network_gui.cpp')
-rw-r--r-- | src/network/network_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index bd91cc25a..9048ad854 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -1661,7 +1661,7 @@ enum DropDownAdmin { */ static void AdminClientKickCallback(Window *w, bool confirmed) { - if (confirmed) NetworkServerKickClient(_admin_client_id, nullptr); + if (confirmed) NetworkServerKickClient(_admin_client_id, {}); } /** @@ -1671,7 +1671,7 @@ static void AdminClientKickCallback(Window *w, bool confirmed) */ static void AdminClientBanCallback(Window *w, bool confirmed) { - if (confirmed) NetworkServerKickOrBanIP(_admin_client_id, true, nullptr); + if (confirmed) NetworkServerKickOrBanIP(_admin_client_id, true, {}); } /** |