From 6d6f890ededbfba2cb7dd06a5d8998d4d109091e Mon Sep 17 00:00:00 2001 From: AndreFaramir Date: Fri, 3 Feb 2012 19:37:42 -0200 Subject: [PATCH] bug fix --- modules/game_console/console.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/game_console/console.lua b/modules/game_console/console.lua index f5e52309..d0f86f47 100644 --- a/modules/game_console/console.lua +++ b/modules/game_console/console.lua @@ -202,6 +202,7 @@ function Console.sendCurrentMessage() local originalMessage = message local chatCommandSayMode local chatCommandPrivate + local chatCommandPrivateReady local chatCommandMessage = message:match("^%#y (.*)") if chatCommandMessage ~= nil then chatCommandSayMode = 'yell' end -- player used yell command @@ -218,8 +219,8 @@ function Console.sendCurrentMessage() if chatCommandInitial == "*" then consoleLineEdit:setText('*'.. chatCommandPrivate .. '* ') end - chatCommandPrivate = chatCommandPrivate message = chatCommandMessage:trim() + chatCommandPrivateReady = true end end @@ -241,7 +242,7 @@ function Console.sendCurrentMessage() end local speaktypedesc - if tab.channelId and not chatCommandPrivate then + if tab.channelId and not chatCommandPrivateReady then if tab.channelId == 0 then speaktypedesc = chatCommandSayMode or SayModes[consolePanel:getChildById('sayModeButton').sayMode].speakTypeDesc if speaktypedesc ~= 'say' then Console.sayModeChange(2) end -- head back to say mode @@ -253,7 +254,7 @@ function Console.sendCurrentMessage() return else local isPrivateCommand = false - if chatCommandPrivate then + if chatCommandPrivateReady then speaktypedesc = 'privatePlayerToPlayer' name = chatCommandPrivate isPrivateCommand = true