# HG changeset patch # User Seve Ferrer # Date 1601650957 -7200 # Node ID eb5a04a9877abc79ac756ecceb900c230e8ff1c2 # Parent 7ca948b157df69f95f06a22134840a530d45db6f plugins/groupchat.lua: Add support for muc passwords diff -r 7ca948b157df -r eb5a04a9877a plugins/groupchat.lua --- a/plugins/groupchat.lua Tue Sep 22 14:59:25 2020 +0200 +++ b/plugins/groupchat.lua Fri Oct 02 17:02:37 2020 +0200 @@ -27,9 +27,9 @@ end); end - function bot:join_room(room_jid, nick) + function bot:join_room(room_jid, nick, password) nick = nick or bot.config.nick or ("bot"..math.random(10000,99999)); - local room = bot.stream:join_room(room_jid, nick) + local room = bot.stream:join_room(room_jid, nick, password) room.bot = bot; room:hook("message", function(event) if event.nick == room.nick then