mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Remove legacy chat network code. (#6954)
This commit is contained in:
parent
11928b7af1
commit
ae6aed15cf
3 changed files with 1 additions and 26 deletions
|
@ -358,30 +358,6 @@ void Client::handleCommand_TimeOfDay(NetworkPacket* pkt)
|
|||
<< " dr=" << dr << std::endl;
|
||||
}
|
||||
|
||||
void Client::handleCommand_ChatMessageOld(NetworkPacket *pkt)
|
||||
{
|
||||
/*
|
||||
u16 command
|
||||
u16 length
|
||||
wstring message
|
||||
*/
|
||||
u16 len, read_wchar;
|
||||
|
||||
*pkt >> len;
|
||||
|
||||
std::wstring message;
|
||||
for (u32 i = 0; i < len; i++) {
|
||||
*pkt >> read_wchar;
|
||||
message += (wchar_t)read_wchar;
|
||||
}
|
||||
|
||||
// If chat message not consummed by client lua API
|
||||
// @TODO send this to CSM using ChatMessage object
|
||||
if (!moddingEnabled() || !m_script->on_receiving_message(wide_to_utf8(message))) {
|
||||
pushToChatQueue(new ChatMessage(message));
|
||||
}
|
||||
}
|
||||
|
||||
void Client::handleCommand_ChatMessage(NetworkPacket *pkt)
|
||||
{
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue