Git Product home page Git Product logo

Comments (5)

monk-afk avatar monk-afk commented on June 11, 2024

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

from filterplus.

monk-afk avatar monk-afk commented on June 11, 2024

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

from filterplus.

monk-afk avatar monk-afk commented on June 11, 2024

adding to init.lua:

if word == "спасибо" then
	print("detected спасибо")
end

is successful:

detected спасибо
2024-02-04 01:41:24: ACTION[Server]: monk issued command: спасибо

from filterplus.

monk-afk avatar monk-afk commented on June 11, 2024

https://github.com/MultiCraft/MultiCraft/blob/fc02a37cdd2114842fab55b70050c5b98cdf9f11/doc/lua_api.txt#L6964

https://github.com/minetest/minetest/blob/e7dbd325d2e50e7bc3a509ec6a7eaeee1ec2ae8a/doc/lua_api.md?plain=1#L8350

from filterplus.

monk-afk avatar monk-afk commented on June 11, 2024

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]", "")

image

./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

from filterplus.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.