mirror of
https://github.com/minetest-mods/irc.git
synced 2024-12-28 09:40:17 +01:00
Merge branch 'master' of https://github.com/kaeza/minetest-irc
This commit is contained in:
commit
e1c46c52b0
@ -214,6 +214,9 @@ minetest.register_chatcommand("join", {
|
|||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
mt_irc.connected_players[name] = true;
|
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.");
|
minetest.chat_send_player(name, "IRC: You are now in the channel.");
|
||||||
end;
|
end;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user