Support upper and lower case letters for hotkeys starting with #s, #y and #w
This commit is contained in:
parent
7cc368305f
commit
c8f9cdd6fa
|
@ -679,7 +679,7 @@ function sendMessage(message, tab)
|
||||||
local chatCommandMessage
|
local chatCommandMessage
|
||||||
|
|
||||||
-- player used yell command
|
-- player used yell command
|
||||||
chatCommandMessage = message:match("^%#y (.*)")
|
chatCommandMessage = message:match("^%#[y|Y] (.*)")
|
||||||
if chatCommandMessage ~= nil then
|
if chatCommandMessage ~= nil then
|
||||||
chatCommandSayMode = 'yell'
|
chatCommandSayMode = 'yell'
|
||||||
channel = 0
|
channel = 0
|
||||||
|
@ -687,7 +687,7 @@ function sendMessage(message, tab)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- player used whisper
|
-- player used whisper
|
||||||
local chatCommandMessage = message:match("^%#w (.*)")
|
local chatCommandMessage = message:match("^%#[w|W] (.*)")
|
||||||
if chatCommandMessage ~= nil then
|
if chatCommandMessage ~= nil then
|
||||||
chatCommandSayMode = 'whisper'
|
chatCommandSayMode = 'whisper'
|
||||||
message = chatCommandMessage
|
message = chatCommandMessage
|
||||||
|
@ -695,7 +695,7 @@ function sendMessage(message, tab)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- player say
|
-- player say
|
||||||
local chatCommandMessage = message:match("^%#s (.*)")
|
local chatCommandMessage = message:match("^%#[s|S] (.*)")
|
||||||
if chatCommandMessage ~= nil then
|
if chatCommandMessage ~= nil then
|
||||||
chatCommandSayMode = 'say'
|
chatCommandSayMode = 'say'
|
||||||
message = chatCommandMessage
|
message = chatCommandMessage
|
||||||
|
|
Loading…
Reference in New Issue