Merge branch 'master' into nalc-1.2

This commit is contained in:
Sys Quatre 2019-05-09 22:50:04 +02:00
commit 54fa61e32b
3 changed files with 10 additions and 1 deletions

8
.luacheckrc Normal file
View File

@ -0,0 +1,8 @@
unused_args = false
allow_defined_top = true
read_globals = {
"minetest",
"irc",
}

View File

@ -2,7 +2,7 @@
local irc_users = {}
local old_chat_send_player = minetest.chat_send_player
minetest.chat_send_player = function(name, message)
minetest.chat_send_player = function(name, message) -- luacheck: ignore
for nick, loggedInAs in pairs(irc_users) do
if name == loggedInAs and not minetest.get_player_by_name(name) then
irc:say(nick, message)

1
mod.conf Normal file
View File

@ -0,0 +1 @@
name = irc_commands