actual blunder

Signed-off-by: Ayane Satomi <ayane@vignetteapp.org>
This commit is contained in:
Ayane Satomi 2022-06-22 10:00:55 +08:00
parent c286f53000
commit 6981eed62a
No known key found for this signature in database
GPG key ID: 431E3C36BEBE204B

View file

@ -49,7 +49,7 @@ hook.add("playerchat", "tts", function(ply, txt)
if string.sub(txt, 1, 1) == ":" then
local l = string.gsub(txt, ":", "")
if #l > 1 then
local lastLang = l
local lastLang = curLang
if has_value(VALID_LANGS, l) then
curLang = l