1
0
mirror of https://github.com/minetest-mods/irc.git synced 2025-02-14 07:30:23 +01:00
irc/messages.lua
2018-04-23 09:56:39 +05:30

18 lines
420 B
Lua

-- This file is licensed under the terms of the BSD 2-clause license.
-- See LICENSE.txt for details.
irc.msgs = irc.lib.msgs
function irc.logChat(message)
minetest.log("action", "IRC CHAT: "..message)
end
function irc.sendLocal(message)
minetest.chat_send_all(minetest.colorize("#0099ff", message))
irc.logChat(message)
end
function irc.playerMessage(name, message)
return ("<%s> %s"):format(name, message)
end