if(deployed == SER_FMT_VER_INVALID)
{
+ actionstream<<"Server: A mismatched client tried to connect."
+ <<std::endl;
infostream<<"Server: Cannot negotiate "
"serialization version with peer "
<<peer_id<<std::endl;
if(net_proto_version == 0)
{
+ actionstream<<"Server: An old tried to connect."
+ <<std::endl;
SendAccessDenied(m_con, peer_id, std::wstring(
L"Your client's version is not supported.\n"
L"Server version is ")
{
if(net_proto_version != PROTOCOL_VERSION)
{
+ actionstream<<"Server: A mismatched client tried to connect."
+ <<std::endl;
SendAccessDenied(m_con, peer_id, std::wstring(
L"Your client's version is not supported.\n"
L"Server version is ")
if(playername[0]=='\0')
{
- infostream<<"Server: Player has empty name"<<std::endl;
+ actionstream<<"Server: Player with an empty name "
+ <<"tried to connect."<<std::endl;
SendAccessDenied(m_con, peer_id,
L"Empty name");
return;
if(string_allowed(playername, PLAYERNAME_ALLOWED_CHARS)==false)
{
- infostream<<"Server: Player has invalid name"<<std::endl;
+ actionstream<<"Server: Player with an invalid name "
+ <<"tried to connect."<<std::endl;
SendAccessDenied(m_con, peer_id,
L"Name contains unallowed characters");
return;
}
else
{
- for(u32 i=0; i<PASSWORD_SIZE-1; i++)
- {
- password[i] = data[23+i];
- }
- password[PASSWORD_SIZE-1] = 0;
+ for(u32 i=0; i<PASSWORD_SIZE-1; i++)
+ {
+ password[i] = data[23+i];
+ }
+ password[PASSWORD_SIZE-1] = 0;
}
// Add player to auth manager
& (PRIV_SERVER|PRIV_BAN|PRIV_PRIVS|PRIV_PASSWORD)) == 0 &&
playername != g_settings->get("name"))
{
+ actionstream<<"Server: "<<playername<<" tried to join, but there"
+ <<" are already max_users="
+ <<g_settings->getU16("max_users")<<" players."<<std::endl;
SendAccessDenied(m_con, peer_id, L"Too many users.");
return;
}
// If failed, cancel
if(player == NULL)
{
- infostream<<"Server: peer_id="<<peer_id
+ errorstream<<"Server: peer_id="<<peer_id
<<": failed to emerge player"<<std::endl;
return;
}
{
DSTACK(__FUNCTION_NAME);
- infostream<<DTIME<<std::endl;
- infostream<<"========================"<<std::endl;
infostream<<"Running dedicated server"<<std::endl;
infostream<<"========================"<<std::endl;
- infostream<<std::endl;
IntervalLimiter m_profiler_interval;