From 956b9cc7aa164fea0a88743c57e0f08827501803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Mart=C3=ADnez?= Date: Tue, 18 Dec 2012 02:50:53 -0200 Subject: [PATCH] Testing --- src/init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/init.lua b/src/init.lua index 32ca3dc..3c3fdc9 100644 --- a/src/init.lua +++ b/src/init.lua @@ -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