Merge pull request #3 from kizeren/patch-1

Update src/init.lua
This commit is contained in:
kaeza 2012-12-17 13:43:52 -08:00
commit e522a7d3fb

View File

@ -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;
});