From 64897c1ba0cf119fe19d2e1173b062c6ce4acc00 Mon Sep 17 00:00:00 2001 From: kizeren Date: Mon, 17 Dec 2012 00:00:13 -0600 Subject: [PATCH] Update src/init.lua --- src/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/init.lua b/src/init.lua index 32ca3dc..fadba37 100644 --- a/src/init.lua +++ b/src/init.lua @@ -214,6 +214,9 @@ minetest.register_chatcommand("join", { return; end 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); minetest.chat_send_player(name, "IRC: You are now in the channel."); end; });