# HG changeset patch # User Waqas Hussain # Date 1276437783 -18000 # Node ID ee8aaca3226ca5e1c2b0ff6df3543d5eacb4ec64 # Parent 3371419eb0e138852540d45f67b418e576b25146 MUC: Include a element in invites from password protected rooms. diff -r 3371419eb0e1 -r ee8aaca3226c plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Sun Jun 13 18:29:26 2010 +0500 +++ b/plugins/muc/muc.lib.lua Sun Jun 13 19:03:03 2010 +0500 @@ -706,8 +706,11 @@ :tag('x', {xmlns='http://jabber.org/protocol/muc#user'}) :tag('invite', {from=_from}) :tag('reason'):text(_reason or ""):up() - :up() - :up() + :up(); + if self:get_password() then + invite:tag("password"):text(self:get_password()):up(); + end + invite:up() :tag('x', {xmlns="jabber:x:conference", jid=_to}) -- COMPAT: Some older clients expect this :text(_reason or "") :up()