1
0
mirror of https://github.com/minetest-mods/irc.git synced 2024-12-26 17:00:17 +01:00

Add IRC messages to log.

This commit is contained in:
tai 2016-11-05 22:29:33 +00:00 committed by Diego Martínez
parent 0f6e1dacc4
commit d5ad8ffca4
2 changed files with 6 additions and 2 deletions

View File

@ -3,11 +3,15 @@
irc.msgs = irc.lib.msgs
function irc:logChat(message)
minetest.log("action", "IRC CHAT: "..message)
end
function irc:sendLocal(message)
minetest.chat_send_all(message)
irc:logChat(message)
end
function irc:playerMessage(name, message)
return ("<%s> %s"):format(name, message)
end

View File

@ -65,5 +65,5 @@ function irc:sendLocal(message)
for name, _ in pairs(self.joined_players) do
minetest.chat_send_player(name, message)
end
irc:logChat(message)
end