Fix bug in chatplus

This commit is contained in:
rubenwardy 2016-03-17 16:00:12 +00:00
parent c812241314
commit b7d60d1363

View file

@ -177,6 +177,14 @@ function chatplus.log_message(from, msg)
chatplus.log("<" .. from .. "> " .. msg)
end
minetest.register_on_joinplayer(function(player)
chatplus.poke(player:get_player_name(), player)
end)
minetest.register_on_leaveplayer(function(player)
chatplus.poke(player:get_player_name(), "end")
end)
function chatplus.send(from, msg)
if msg:sub(1, 1) == "/" then
return false