Remove chatplus sending info to IRC

This commit is contained in:
rubenwardy 2016-04-08 19:02:49 +01:00
parent bb85720710
commit 9f91feaafa

View file

@ -189,7 +189,7 @@ function chatplus.send(from, msg)
if msg:sub(1, 1) == "/" then
return false
end
if not minetest.check_player_privs(from, {shout = true}) then
return nil
end
@ -228,9 +228,6 @@ end
-- Minetest callbacks
minetest.register_on_chat_message(function(...)
local ret = chatplus.send(...)
if ret and minetest.global_exists("irc") and irc.on_chatmessage then
irc.on_chatmessage(...)
end
return ret
end)
minetest.register_on_joinplayer(function(player)