mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2026-10-22 08:17:47 +00:00
Use encoding="CP1251" for lua plugins;
This commit is contained in:
1 parent
d92aae7c47
commit
4276eb0fdb
1 file changed
+1
-1
@@ -627,7 +627,7 @@ class LuaPluginsLoader:
|
||||
|
||||
for name in self.lua_dirs:
|
||||
# noinspection PyArgumentList
|
||||
lua = LuaRuntime(encoding=config.enc, source_encoding=config.enc, unpack_returned_tuples=True)
|
||||
lua = LuaRuntime(encoding="CP1251", source_encoding=config.enc, unpack_returned_tuples=True)
|
||||
lua_globals = lua.globals()
|
||||
lua_globals.printRaw = lua.globals().print
|
||||
lua_globals.exit = lambda x: self.log.info(f"KuiToi: You can't disable server..")
|
||||
|
||||
Reference in new issue
Block a user