From b8993d82bd0f5af3b9246b8913f86f02c1d51563 Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 1 Jan 2008 17:09:22 +0000 Subject: [PATCH] * src/mod_muc/mod_muc_room.erl: Resend 'continue' elements in muc room invitations (EJAB-490) SVN Revision: 1136 --- ChangeLog | 3 +++ src/mod_muc/mod_muc_room.erl | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 17dc882b5..d8d03f381 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2008-01-01 Badlop + * src/mod_muc/mod_muc_room.erl: Resend 'continue' elements in muc + room invitations (EJAB-490) + * src/ejabberdctl.template: Create logs_dir if doesn't exist. New parameters --config, --ctl-config, --logs, --spool. Crash dump renamed to erl_crash_DATETIME.dump. 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 ->