Fix bug in chatplus
This commit is contained in:
parent
c812241314
commit
b7d60d1363
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue