mirror of
https://github.com/minetest-mods/irc_commands.git
synced 2025-01-09 15:20:19 +01:00
Add .luacheckrc
.
This commit is contained in:
parent
06932a6b00
commit
83ad5f580a
8
.luacheckrc
Normal file
8
.luacheckrc
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
unused_args = false
|
||||||
|
allow_defined_top = true
|
||||||
|
|
||||||
|
read_globals = {
|
||||||
|
"minetest",
|
||||||
|
"irc",
|
||||||
|
}
|
2
init.lua
2
init.lua
@ -2,7 +2,7 @@
|
|||||||
local irc_users = {}
|
local irc_users = {}
|
||||||
|
|
||||||
local old_chat_send_player = minetest.chat_send_player
|
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
|
for nick, loggedInAs in pairs(irc_users) do
|
||||||
if name == loggedInAs and not minetest.get_player_by_name(name) then
|
if name == loggedInAs and not minetest.get_player_by_name(name) then
|
||||||
irc:say(nick, message)
|
irc:say(nick, message)
|
||||||
|
Loading…
Reference in New Issue
Block a user