Fix IRC
This commit is contained in:
parent
15d4e21c61
commit
ed6d75b582
1 changed files with 6 additions and 1 deletions
|
@ -209,7 +209,12 @@ end
|
||||||
|
|
||||||
|
|
||||||
-- Minetest callbacks
|
-- Minetest callbacks
|
||||||
minetest.register_on_chat_message(chatplus.send)
|
minetest.register_on_chat_message(function(...)
|
||||||
|
local ret = chatplus.send(...)
|
||||||
|
if ret and minetest.global_exists("irc") then
|
||||||
|
irc.on_chatmessage(...)
|
||||||
|
end
|
||||||
|
end)
|
||||||
minetest.register_on_joinplayer(function(player)
|
minetest.register_on_joinplayer(function(player)
|
||||||
chatplus.log(player:get_player_name() .. " joined")
|
chatplus.log(player:get_player_name() .. " joined")
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in a new issue