Update console.lua

I was wrong, still need it for multireturn unpack
This commit is contained in:
4drik 2019-11-21 13:43:08 +01:00 committed by diath
parent 14a93a13c8
commit 49e3ded63c

View File

@ -882,7 +882,7 @@ function sendMessage(message, tab)
channel = 0 channel = 0
end end
local findIni, chatCommandInitial, chatCommandPrivate, chatCommandEnd, chatCommandMessage = message:find("([%*%@])(.+)([%*%@])(.*)") local findIni, findEnd, chatCommandInitial, chatCommandPrivate, chatCommandEnd, chatCommandMessage = message:find("([%*%@])(.+)([%*%@])(.*)")
if findIni ~= nil and findIni == 1 then -- player used private chat command if findIni ~= nil and findIni == 1 then -- player used private chat command
if chatCommandInitial == chatCommandEnd then if chatCommandInitial == chatCommandEnd then
chatCommandPrivateRepeat = false chatCommandPrivateRepeat = false