irc/messages.lua

18 lines
390 B
Lua
Raw Normal View History

2013-04-30 00:07:44 +02:00
-- This file is licensed under the terms of the BSD 2-clause license.
-- See LICENSE.txt for details.
irc.msgs = irc.lib.msgs
2013-04-30 00:07:44 +02:00
function irc.logChat(message)
2016-11-05 23:29:33 +01:00
minetest.log("action", "IRC CHAT: "..message)
end
function irc.sendLocal(message)
minetest.chat_send_all(message)
irc.logChat(message)
2013-04-30 00:07:44 +02:00
end
function irc.playerMessage(name, message)
2014-05-06 21:26:13 +02:00
return ("<%s> %s"):format(name, message)
2013-04-30 00:07:44 +02:00
end