mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
More multiprotocol support
This commit is contained in:
@@ -47,7 +47,7 @@ end
|
||||
function parseTextMessage(msg)
|
||||
local msgtype = msg:getU8()
|
||||
local text = msg:getString()
|
||||
msgtype = getMessageTypes(g_game.getProtocolVersion())[msgtype]
|
||||
msgtype = getMessageTypes(g_game.getClientVersion())[msgtype]
|
||||
signalcall(g_game.onTextMessage, msgtype, text)
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user