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.
|
|
|
|
|
2014-05-26 04:52:24 +02:00
|
|
|
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
|
|
|
|
|
2014-05-26 04:52:24 +02:00
|
|
|
function irc:sendLocal(message)
|
2013-10-08 19:06:27 +02:00
|
|
|
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
|
|
|
|
|
2014-05-26 04:52:24 +02:00
|
|
|
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
|