From: Perttu Ahola Date: Tue, 6 Aug 2013 15:13:11 +0000 (+0300) Subject: Clean up server's log messages and give a better error to client when its player... X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=61f240946a794423b0a50916c96dbb51054a77d0;p=zefram%2Fminetest%2Fminetest_engine.git Clean up server's log messages and give a better error to client when its player is in use --- diff --git a/src/server.cpp b/src/server.cpp index f5f6645a..1fea8afe 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -1810,14 +1810,13 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id) if(datasize < 2+1+PLAYERNAME_SIZE) return; - verbosestream<<"Server: Got TOSERVER_INIT from " - < 1){ - infostream<<"Server: Not allowing another client to connect in" - <<" simple singleplayer mode"< SERVER_PROTOCOL_VERSION_MAX) { - actionstream<<"Server: A mismatched client tried to connect from "<(m_env->getPlayer(playername)); + if(player && player->peer_id != 0){ + errorstream<<"Server: "<