Closed monk-afk closed 8 months ago
possibly a locale issue,
:~$ locale -a
C
C.UTF-8
en_US.utf8
POSIX
link for future reference: https://serverfault.com/questions/54591/how-to-install-change-locale-on-debian
using /blacklist insert converts to utf with escape: \"\u0441\u043f\u0430\u0441\u0438\u0431\u043e\"
the word спасибо
is not detected from chat
modifying the mod_storage entry from escaped string to the exact word, it is automatically converted from спасибо
to \"\u0441\u043f\u0430\u0441\u0438\u0431\u043e\"
during serialization
also tried with letters such as ç
with no difference
adding to init.lua:
if word == "спасибо" then
print("detected спасибо")
end
is successful:
detected спасибо
2024-02-04 01:41:24: ACTION[Server]: monk issued command: спасибо
changing line 147 to character class set works on minetestserver 5.9.0-dev, as well as multicraftserver 2.0.6
local word = gsub(lower(try_word), "[%p%c]", "")
./minetestserver --version
Minetest 5.9.0-dev (Linux)
Using LuaJIT 2.1.0-beta3
Running on Linux/6.1.0-9-amd64 x86_64
BUILD_TYPE=Release
./multicraftserver --version
MultiCraft 2.0.6 (Linux)
Using LuaJIT 2.1.0-beta3
BUILD_TYPE=Release
Only detects Latin characters.