mirror of
https://github.com/minetest-mods/irc.git
synced 2024-12-27 01:10:17 +01:00
Add IRC messages to log.
This commit is contained in:
parent
0f6e1dacc4
commit
d5ad8ffca4
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user