From 1c12bc3fb2c978348fede36c55f953713bb5e931 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Sat, 28 Apr 2012 17:18:36 -0300 Subject: [PATCH] fix minor channels lua error --- modules/game_console/console.lua | 6 +++--- modules/game_npctrade/npctrade.otmod | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/game_console/console.lua b/modules/game_console/console.lua index b526a71d..9275a5da 100644 --- a/modules/game_console/console.lua +++ b/modules/game_console/console.lua @@ -96,12 +96,12 @@ local function onCreatureSpeak(name, level, speaktype, message, channelId, creat if not defaultMessage then channel = channels[channelId] end - + 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 diff --git a/modules/game_npctrade/npctrade.otmod b/modules/game_npctrade/npctrade.otmod index adc158d3..a9be3321 100644 --- a/modules/game_npctrade/npctrade.otmod +++ b/modules/game_npctrade/npctrade.otmod @@ -12,4 +12,4 @@ Module NPCTrade.init() @onUnload: | - NPCTrade.terminate() \ No newline at end of file + NPCTrade.terminate()