minetest-france/mods/irc/messages.lua
dicebox 7e335f46e3 git subrepo clone https://github.com/minetest-mods/irc.git mods/irc
subrepo:
  subdir:   "mods/irc"
  merged:   "ae0cb08"
upstream:
  origin:   "https://github.com/minetest-mods/irc.git"
  branch:   "master"
  commit:   "ae0cb08"
git-subrepo:
  version:  "0.3.1"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "a7ee886"
2017-02-10 18:25:03 +01:00

18 lines
390 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(message)
irc:logChat(message)
end
function irc:playerMessage(name, message)
return ("<%s> %s"):format(name, message)
end