Compare commits

...

4 Commits

Author SHA1 Message Date
Sys Quatre 54fa61e32b Merge branch 'master' into nalc-1.2 2019-05-09 22:50:04 +02:00
Diego Martínez 83ad5f580a Add `.luacheckrc`. 2019-04-10 23:56:35 -04:00
D Tim Cummings 06932a6b00 Replace deprecated use of colon notation when calling methods `register_hook` and `register_bot_command`
This change removes 8 warnings from debug.txt every time server starts.
2018-06-12 11:17:25: WARNING[Main]: Deprecated use of colon notation when calling method `register_hook` at @/minetest/mods/irc_commands/init.lua:14
2018-06-12 11:17:25: WARNING[Main]: Deprecated use of colon notation when calling method `register_hook` at @/minetest/mods/irc_commands/init.lua:23
2018-06-12 11:17:25: WARNING[Main]: Deprecated use of colon notation when calling method `register_hook` at @/minetest/mods/irc_commands/init.lua:27
2018-06-12 11:17:25: WARNING[Main]: Deprecated use of colon notation when calling method `register_hook` at @/minetest/mods/irc_commands/init.lua:31
2018-06-12 11:17:25: WARNING[Main]: Deprecated use of colon notation when calling method `register_bot_command` at @/minetest/mods/irc_commands/init.lua:35
2018-06-12 11:17:25: WARNING[Main]: Deprecated use of colon notation when calling method `register_bot_command` at @/minetest/mods/irc_commands/init.lua:77
2018-06-12 11:17:25: WARNING[Main]: Deprecated use of colon notation when calling method `register_bot_command` at @/minetest/mods/irc_commands/init.lua:91
2018-06-12 11:17:25: WARNING[Main]: Deprecated use of colon notation when calling method `register_bot_command` at @/minetest/mods/irc_commands/init.lua:118
2019-04-10 23:16:47 -04:00
ShadowNinja 0956bdea31 Add mod.conf 2019-04-10 23:09:44 -04:00
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