1
0
mirror of https://github.com/minetest-mods/irc.git synced 2024-11-17 07:10:19 +01:00
This commit is contained in:
Diego Martínez 2012-12-18 02:50:53 -02:00
parent e1d0122594
commit 956b9cc7aa

View File

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