master
Diego Martínez 2012-12-18 02:50:53 -02:00
parent e1d0122594
commit 956b9cc7aa
1 changed files with 5 additions and 1 deletions

View File

@ -174,7 +174,7 @@ minetest.register_chatcommand("msg", {
local name = param:sub(1, pos - 1);
local msg = param:sub(pos + 1);
local t = {
name=nick;
name=name;
message=msg;
};
local text = mt_irc.message_format_out:gsub("%$%(([^)]+)%)", t)
@ -242,4 +242,8 @@ if (mt_irc.connect_on_load) then
timeout = mt_irc.timeout;
channel = mt_irc.channel;
});
if (not mt_irc.connect_ok) then
local s = "DEBUG: irc.connect failed";
minetest.chat_send_all(s);
end
end