From 6e7447d7dd61db5f86e3e75bc94ca9284e06d091 Mon Sep 17 00:00:00 2001 From: kizeren Date: Tue, 18 Dec 2012 19:26:58 -0600 Subject: [PATCH 1/2] Update src/init.lua Removing autjoin stuff. Bot refuses to join regardless. Going to have bot join when any users types the in game "/join" command. For this to work autoconnect needs to enabled. --- src/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init.lua b/src/init.lua index a12b736..77b6623 100644 --- a/src/init.lua +++ b/src/init.lua @@ -220,7 +220,7 @@ minetest.register_chatcommand("join", { mt_irc.connected_players[name] = true; -- Best way I could get bot to autojoin channel was to add the irc.join function here. -- Bot won't connect until the first user joins. The bot will not disconect if last player leaves. - --irc.join(mt_irc.channel); + irc.join(mt_irc.channel); minetest.chat_send_player(name, "IRC: You are now in the channel."); end; }); From 1d58683c7b0f4e5368ee48246a4ff8c04989ecb6 Mon Sep 17 00:00:00 2001 From: kizeren Date: Tue, 18 Dec 2012 19:28:07 -0600 Subject: [PATCH 2/2] Update src/config.lua Removing autjoin stuff. Bot refuses to join regardless. Going to have bot join when any users types the in game "/join" command. For this to work autoconnect needs to enabled. --- src/config.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/config.lua b/src/config.lua index dd9dc98..949629d 100644 --- a/src/config.lua +++ b/src/config.lua @@ -1,4 +1,3 @@ - -- ************************* -- ** BASIC USER SETTINGS ** -- ************************* @@ -41,7 +40,9 @@ mt_irc.message_format_in = "<$(name)@IRC> $(message)"; mt_irc.debug = true; -- Whether to automatically join the channed when player joins --- (boolean, default false) +-- (boolean, default false) +-- For now leave this false if using autoconnect. Bot will join channel when first user +-- types the /join command in game. mt_irc.connect_on_join = false; -- Whether to automatically connect to the server on mod load