mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
fix minor channels lua error
This commit is contained in:
@@ -100,8 +100,8 @@ local function onCreatureSpeak(name, level, speaktype, message, channelId, creat
|
||||
if channel then
|
||||
Console.addText(message, speaktype, channel)
|
||||
else
|
||||
-- server sent a message on a channel that we are not aware of, must leave it
|
||||
g_game.leaveChannel(channelId)
|
||||
-- server sent a message on a channel that is not open
|
||||
warning('message in channel id ', channelId, ' which is unknown, this is a server bug, relogin if you want to see messages in this channel')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user