]> granicus.if.org Git - ejabberd/commitdiff
* src/mod_muc/mod_muc_room.erl: Resend 'continue' elements in muc
authorBadlop <badlop@process-one.net>
Tue, 1 Jan 2008 17:09:22 +0000 (17:09 +0000)
committerBadlop <badlop@process-one.net>
Tue, 1 Jan 2008 17:09:22 +0000 (17:09 +0000)
room invitations (EJAB-490)

SVN Revision: 1136

ChangeLog
src/mod_muc/mod_muc_room.erl

index 17dc882b52cd3b207a6aa3f4a92f5eecbd9832e6..d8d03f381029c6b78bd6328293fa1ec7946b9ba4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2008-01-01  Badlop  <badlop@process-one.net>
 
+       * 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.
index c35b86364281786e7de139b3fc499b1c6af22aba..b738cee07546f70b34761863b7e51a13c3a199ce 100644 (file)
@@ -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 ->