Update chatplus
This commit is contained in:
parent
2722b16a81
commit
960ee92607
1 changed files with 6 additions and 1 deletions
|
@ -219,6 +219,8 @@ function chatplus.send(from, msg)
|
||||||
if res == nil or res == true then
|
if res == nil or res == true then
|
||||||
minetest.chat_send_player(to, "<" .. from .. "> " .. msg)
|
minetest.chat_send_player(to, "<" .. from .. "> " .. msg)
|
||||||
end
|
end
|
||||||
|
elseif minetest.features.no_chat_message_prediction then
|
||||||
|
minetest.chat_send_player(from, "<" .. from .. "> " .. msg)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
|
@ -228,6 +230,9 @@ end
|
||||||
-- Minetest callbacks
|
-- Minetest callbacks
|
||||||
minetest.register_on_chat_message(function(...)
|
minetest.register_on_chat_message(function(...)
|
||||||
local ret = chatplus.send(...)
|
local ret = chatplus.send(...)
|
||||||
|
if ret and minetest.global_exists("irc") and irc.on_chatmessage then
|
||||||
|
irc.on_chatmessage(...)
|
||||||
|
end
|
||||||
return ret
|
return ret
|
||||||
end)
|
end)
|
||||||
minetest.register_on_joinplayer(function(player)
|
minetest.register_on_joinplayer(function(player)
|
||||||
|
|
Loading…
Reference in a new issue