From a4507b8b6fce52935d610b7eb7f6321cb7422a8c Mon Sep 17 00:00:00 2001 From: Alexey Shchepin Date: Mon, 9 May 2005 19:38:16 +0000 Subject: [PATCH] * src/mod_muc/mod_muc_room.erl: Fixed bug with storing affiliations of invited users in members-only room (thanks to Sergei Golovan) SVN Revision: 346 --- ChangeLog | 4 ++++ src/mod_muc/mod_muc_room.erl | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index 137c36d60..73072dc7a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2005-05-09 Alexey Shchepin + * src/mod_muc/mod_muc_room.erl: Fixed bug with storing + affiliations of invited users in members-only room (thanks to + Sergei Golovan) + * src/ejabberd_c2s.erl: Fixed starttls_required behaviour for legacy connections (thanks to Brian Campbell) diff --git a/src/mod_muc/mod_muc_room.erl b/src/mod_muc/mod_muc_room.erl index 49fbe9d30..b1a5d4017 100644 --- a/src/mod_muc/mod_muc_room.erl +++ b/src/mod_muc/mod_muc_room.erl @@ -249,6 +249,15 @@ normal_state({route, From, "", IJID, member, StateData), + case (NSD#state.config)#config.persistent of + true -> + mod_muc:store_room( + NSD#state.host, + NSD#state.room, + make_opts(NSD)); + _ -> + ok + end, {next_state, normal_state, NSD}; _ -> {next_state, normal_state,