From 1f242935c5068addb17d9bdc79f5d33779f55e40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Mart=C3=ADnez?= Date: Sun, 2 Dec 2012 07:00:41 -0200 Subject: [PATCH] testing --- src/init.lua | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/init.lua b/src/init.lua index 6001bb3..91c6040 100644 --- a/src/init.lua +++ b/src/init.lua @@ -25,7 +25,7 @@ local CHANNEL = "#minetest-irc-testing"; local DTIME = 0.5; -- Enable debug output (boolean, default false) -local DEBUG = false; +local DEBUG = true; local SERVER_NICK = "mt_game"; @@ -87,10 +87,13 @@ minetest.register_on_joinplayer(function ( player ) irc.register_callback("channel_msg", function ( channel, from, message ) minetest.chat_send_all(from.."[IRC:"..channel.."]: "..message); end); - + irc.register_callback("private_msg", function ( from, message ) end); - + + irc.register_callback("action", function ( from, message ) + end); + irc.register_callback("nick_change", function ( from, old_nick ) end); @@ -101,6 +104,8 @@ minetest.register_on_leaveplayer(function ( player ) end); minetest.register_on_chat_message(function ( name, message ) + print("***DEBUG: CHAT: "..name.."|"..message); + irc.say(CHANNEL, "*** "..player:get_player_name().." joined the game"); if (not mt_irc.buffered_messages) then mt_irc.buffered_messages = { }; end @@ -113,6 +118,6 @@ end); irc.connect({ network = SERVER; nick = SERVER_NICK; - pass = "1234"; + pass = ""; timeout = 1.0; });