mirror of
https://github.com/minetest-mods/irc.git
synced 2025-01-14 09:30:18 +01:00
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.
This commit is contained in:
parent
a1957de7ee
commit
6e7447d7dd
@ -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;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user