Skip to content

Commit

Permalink
Use encoding="CP1251" for lua plugins;
Browse files Browse the repository at this point in the history
  • Loading branch information
SantaSpeen committed Jul 24, 2023
1 parent d92aae7 commit 4276eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/PluginsLoader/lua_plugins_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ def load(self):

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..")
Expand Down

0 comments on commit 4276eb0

Please sign in to comment.