mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-01 03:20:47 +00:00
fix oopsy poopsy
This commit is contained in:
parent
66bc1a32ee
commit
1fafeb3baa
|
|
@ -921,7 +921,7 @@ void PlayerConnection::handleChat(shared_ptr<ChatPacket> packet)
|
|||
{
|
||||
if (formatted.empty())
|
||||
formatted = L"<" + player->name + L"> " + message;
|
||||
server->getPlayers()->broadcastAll(std::make_shared<ChatPacket>(formatted));
|
||||
server->getPlayers()->broadcastAll(std::make_shared<ChatPacket>(app.FormatChatMessage(formatted, false)));
|
||||
}
|
||||
}
|
||||
#else
|
||||
|
|
@ -932,6 +932,7 @@ void PlayerConnection::handleChat(shared_ptr<ChatPacket> packet)
|
|||
{
|
||||
disconnect(DisconnectPacket::eDisconnect_None); // spam
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void PlayerConnection::handleCommand(const wstring& message)
|
||||
|
|
|
|||
Loading…
Reference in a new issue