This commit is contained in:
AndreFaramir 2012-02-03 19:37:42 -02:00
parent 68d0f6e015
commit 6d6f890ede
1 changed files with 4 additions and 3 deletions

View File

@ -202,6 +202,7 @@ function Console.sendCurrentMessage()
local originalMessage = message local originalMessage = message
local chatCommandSayMode local chatCommandSayMode
local chatCommandPrivate local chatCommandPrivate
local chatCommandPrivateReady
local chatCommandMessage = message:match("^%#y (.*)") local chatCommandMessage = message:match("^%#y (.*)")
if chatCommandMessage ~= nil then chatCommandSayMode = 'yell' end -- player used yell command if chatCommandMessage ~= nil then chatCommandSayMode = 'yell' end -- player used yell command
@ -218,8 +219,8 @@ function Console.sendCurrentMessage()
if chatCommandInitial == "*" then if chatCommandInitial == "*" then
consoleLineEdit:setText('*'.. chatCommandPrivate .. '* ') consoleLineEdit:setText('*'.. chatCommandPrivate .. '* ')
end end
chatCommandPrivate = chatCommandPrivate
message = chatCommandMessage:trim() message = chatCommandMessage:trim()
chatCommandPrivateReady = true
end end
end end
@ -241,7 +242,7 @@ function Console.sendCurrentMessage()
end end
local speaktypedesc local speaktypedesc
if tab.channelId and not chatCommandPrivate then if tab.channelId and not chatCommandPrivateReady then
if tab.channelId == 0 then if tab.channelId == 0 then
speaktypedesc = chatCommandSayMode or SayModes[consolePanel:getChildById('sayModeButton').sayMode].speakTypeDesc speaktypedesc = chatCommandSayMode or SayModes[consolePanel:getChildById('sayModeButton').sayMode].speakTypeDesc
if speaktypedesc ~= 'say' then Console.sayModeChange(2) end -- head back to say mode if speaktypedesc ~= 'say' then Console.sayModeChange(2) end -- head back to say mode
@ -253,7 +254,7 @@ function Console.sendCurrentMessage()
return return
else else
local isPrivateCommand = false local isPrivateCommand = false
if chatCommandPrivate then if chatCommandPrivateReady then
speaktypedesc = 'privatePlayerToPlayer' speaktypedesc = 'privatePlayerToPlayer'
name = chatCommandPrivate name = chatCommandPrivate
isPrivateCommand = true isPrivateCommand = true