summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shchepin <alexey@process-one.net>2005-05-09 19:38:16 +0000
committerAlexey Shchepin <alexey@process-one.net>2005-05-09 19:38:16 +0000
commita4507b8b6fce52935d610b7eb7f6321cb7422a8c (patch)
tree3256d4464869b86eac5f7d9fa345a5ec5117e384
parent* src/ejabberd_c2s.erl: Fixed starttls_required behaviour for (diff)
* 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
-rw-r--r--ChangeLog4
-rw-r--r--src/mod_muc/mod_muc_room.erl9
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 137c36d6..73072dc7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2005-05-09 Alexey Shchepin <alexey@sevcom.net>
+ * 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 49fbe9d3..b1a5d401 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,