1
0
mirror of https://github.com/minetest-mods/irc.git synced 2025-06-29 22:50:32 +02:00

Major cleanup.

- Use `irc.foo` notation instead of `irc:foo`. It still
  supports the `irc:foo` usage, but will helpfully issue
  a warning with the location of the offending code.
- Remove unused arguments from functions.
This commit is contained in:
Diego Martínez
2017-03-15 21:33:47 -03:00
parent 5f8850bc15
commit 6bf4e111c2
9 changed files with 180 additions and 149 deletions

View File

@ -3,15 +3,15 @@
irc.msgs = irc.lib.msgs
function irc:logChat(message)
function irc.logChat(message)
minetest.log("action", "IRC CHAT: "..message)
end
function irc:sendLocal(message)
function irc.sendLocal(message)
minetest.chat_send_all(message)
irc:logChat(message)
irc.logChat(message)
end
function irc:playerMessage(name, message)
function irc.playerMessage(name, message)
return ("<%s> %s"):format(name, message)
end