mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 22:13:27 +02:00
Dont use boost locale anymore
This commit is contained in:
@@ -85,6 +85,7 @@ function ProtocolLogin:sendLoginPacket()
|
||||
end
|
||||
|
||||
function ProtocolLogin:onConnect()
|
||||
self.gotConnection = true
|
||||
self:sendLoginPacket()
|
||||
end
|
||||
|
||||
@@ -155,6 +156,11 @@ function ProtocolLogin:parseOpcode(opcode, msg)
|
||||
end
|
||||
|
||||
function ProtocolLogin:onError(msg, code)
|
||||
local text = tr('Your connection has been lost. (err: %d)', code)
|
||||
signalcall(self.onLoginError, self, opcode, text)
|
||||
local text
|
||||
if self:isConnecting() then
|
||||
text = tr('Unable to establish a connection. (err: %d)', code)
|
||||
else
|
||||
text = tr('Your connection has been lost. (err: %d)', code)
|
||||
end
|
||||
signalcall(self.onLoginError, self, text)
|
||||
end
|
Reference in New Issue
Block a user