mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Protocol 25: wstring -> string for custom access denial reasons
Also fix std::logic_error when server::DenyAccess() is used with only two arguments.
This commit is contained in:
@@ -217,7 +217,7 @@ void Server::handleCommand_Auth(NetworkPacket* pkt)
|
||||
<< "but it was disallowed for the following reason: "
|
||||
<< reason << std::endl;
|
||||
DenyAccess(pkt->getPeerId(), SERVER_ACCESSDENIED_CUSTOM_STRING,
|
||||
narrow_to_wide(reason.c_str()));
|
||||
reason.c_str());
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user