From c2e12d716bceff9aef302c43f886cf3b06596e4d Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 1 Jan 2008 17:06:26 +0000 Subject: * src/mod_muc/mod_muc_room.erl: Resend 'continue' elements in muc room invitations (EJAB-490) SVN Revision: 1135 --- src/mod_muc/mod_muc_room.erl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mod_muc/mod_muc_room.erl b/src/mod_muc/mod_muc_room.erl index c35b86364..b738cee07 100644 --- a/src/mod_muc/mod_muc_room.erl +++ b/src/mod_muc/mod_muc_room.erl @@ -2975,12 +2975,19 @@ check_invitation(From, Els, Lang, StateData) -> xml:get_path_s( InviteEl, [{elem, "reason"}, cdata]), + ContinueEl = + case xml:get_path_s( + InviteEl, + [{elem, "continue"}]) of + [] -> []; + Continue1 -> [Continue1] + end, IEl = [{xmlelement, "invite", [{"from", jlib:jid_to_string(From)}], [{xmlelement, "reason", [], - [{xmlcdata, Reason}]}]}], + [{xmlcdata, Reason}]}] ++ ContinueEl}], PasswdEl = case (StateData#state.config)#config.password_protected of true -> -- cgit v1.2.3