]> granicus.if.org Git - ejabberd/commit
* src/gen_mod.erl: First store module options in ETS and Mnesia,
authorBadlop <badlop@process-one.net>
Wed, 26 Nov 2008 15:10:38 +0000 (15:10 +0000)
committerBadlop <badlop@process-one.net>
Wed, 26 Nov 2008 15:10:38 +0000 (15:10 +0000)
commit6a785fa536a69bd1bbfeb85cf89e9aa678bcba75
tree61678405a9b56a2c0e0471e0d1e1f2181ab21514
parente68a7312194b4fada3f1846bc2604f8ff6f10c54
* src/gen_mod.erl: First store module options in ETS and Mnesia,
then start the module. In case of failure, remove options from
ETS. Until now the module was started before the options were
stored in database, and some modules started incorrectly because
they couldn't access the options from database; for instance
mod_muc_room required this for reading max_users option.

* src/mod_muc/mod_muc_room.erl: Include the value of max_users
service option and the current max_users room option in the list
of allowed room limit values.

SVN Revision: 1685
ChangeLog
src/gen_mod.erl
src/mod_muc/mod_muc_room.erl