diff options
Diffstat (limited to 'src/network/serverpackethandler.cpp')
-rw-r--r-- | src/network/serverpackethandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/network/serverpackethandler.cpp b/src/network/serverpackethandler.cpp index 2f0e0b30c..955b1a7dc 100644 --- a/src/network/serverpackethandler.cpp +++ b/src/network/serverpackethandler.cpp @@ -267,8 +267,8 @@ void Server::handleCommand_Auth(NetworkPacket* pkt) DenyAccess(pkt->getPeerId(), SERVER_ACCESSDENIED_EMPTY_PASSWORD); return; } - std::wstring raw_default_password = - narrow_to_wide(g_settings->get("default_password")); + std::string raw_default_password = + g_settings->get("default_password"); std::string initial_password = translatePassword(playername, raw_default_password); @@ -571,8 +571,8 @@ void Server::handleCommand_Init_Legacy(NetworkPacket* pkt) L"disallowed. Set a password and try again."); return; } - std::wstring raw_default_password = - narrow_to_wide(g_settings->get("default_password")); + std::string raw_default_password = + g_settings->get("default_password"); std::string initial_password = translatePassword(playername, raw_default_password); |