diff --git a/src/server.cpp b/src/server.cpp index 1618a091..60bf422f 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -1922,6 +1922,15 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id) return; } + if(!isSingleplayer() && strcasecmp(playername, "singleplayer") == 0) + { + actionstream<<"Server: Player with an invalid name " + <<"tried to connect from "<