1
0
mirror of https://github.com/minetest-mods/irc.git synced 2024-11-17 23:28:15 +01:00
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
2016-11-05 23:29:33 +01:00
function irc:logChat(message)
minetest.log("action", "IRC CHAT: "..message)
end
function irc:sendLocal(message)
minetest.chat_send_all(message)
2016-11-05 23:29:33 +01:00
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