2013-04-29 15:07:44 -07:00
|
|
|
-- This file is licensed under the terms of the BSD 2-clause license.
|
|
|
|
-- See LICENSE.txt for details.
|
|
|
|
|
2019-07-24 18:53:22 -07:00
|
|
|
irc2.msgs = irc2.lib.msgs
|
2013-04-29 15:07:44 -07:00
|
|
|
|
2019-07-24 18:53:22 -07:00
|
|
|
function irc2.logChat(message)
|
2016-11-05 15:29:33 -07:00
|
|
|
minetest.log("action", "IRC CHAT: "..message)
|
|
|
|
end
|
|
|
|
|
2019-07-24 18:53:22 -07:00
|
|
|
function irc2.sendLocal(message)
|
2019-07-24 18:42:23 -07:00
|
|
|
minetest.chat_send_all(message)
|
2019-07-24 18:53:22 -07:00
|
|
|
irc2.logChat(message)
|
2013-04-29 15:07:44 -07:00
|
|
|
end
|
|
|
|
|
2019-07-24 18:53:22 -07:00
|
|
|
function irc2.playerMessage(name, message)
|
2014-05-06 12:26:13 -07:00
|
|
|
return ("<%s> %s"):format(name, message)
|
2013-04-29 15:07:44 -07:00
|
|
|
end
|