mirror of
https://github.com/minetest-mods/irc.git
synced 2024-12-27 17:20:20 +01:00
Testing
This commit is contained in:
parent
e1d0122594
commit
956b9cc7aa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user