From c8f9cdd6fab72057efbbfff57773e70ba01b3be1 Mon Sep 17 00:00:00 2001 From: Kamil Chojnowski Date: Sun, 5 Oct 2014 19:27:02 +0200 Subject: [PATCH] Support upper and lower case letters for hotkeys starting with #s, #y and #w --- modules/game_console/console.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/game_console/console.lua b/modules/game_console/console.lua index 63768b96..63c3ab47 100644 --- a/modules/game_console/console.lua +++ b/modules/game_console/console.lua @@ -679,7 +679,7 @@ function sendMessage(message, tab) local chatCommandMessage -- player used yell command - chatCommandMessage = message:match("^%#y (.*)") + chatCommandMessage = message:match("^%#[y|Y] (.*)") if chatCommandMessage ~= nil then chatCommandSayMode = 'yell' channel = 0 @@ -687,7 +687,7 @@ function sendMessage(message, tab) end -- player used whisper - local chatCommandMessage = message:match("^%#w (.*)") + local chatCommandMessage = message:match("^%#[w|W] (.*)") if chatCommandMessage ~= nil then chatCommandSayMode = 'whisper' message = chatCommandMessage @@ -695,7 +695,7 @@ function sendMessage(message, tab) end -- player say - local chatCommandMessage = message:match("^%#s (.*)") + local chatCommandMessage = message:match("^%#[s|S] (.*)") if chatCommandMessage ~= nil then chatCommandSayMode = 'say' message = chatCommandMessage @@ -1263,4 +1263,4 @@ function offline() g_keyboard.unbindKeyDown('Ctrl+R') end clear() -end \ No newline at end of file +end