aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2012-06-08 16:39:15 +0200
committerBadlop <badlop@process-one.net>2012-06-08 16:39:15 +0200
commitbc077266d980ce4ddf4a51bbfd8275f48a1327c2 (patch)
treea561c7f927c903896ecfdf4b86754c51692a37a4 /src
parentFix account registration (diff)
Fix MUC start when Mnesia tables don't exist yet
Diffstat (limited to 'src')
-rw-r--r--src/mod_muc/mod_muc.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_muc/mod_muc.erl b/src/mod_muc/mod_muc.erl
index 811e3c068..fe022391d 100644
--- a/src/mod_muc/mod_muc.erl
+++ b/src/mod_muc/mod_muc.erl
@@ -240,7 +240,6 @@ init([Host, Opts]) ->
MyHost = gen_mod:get_opt_host(Host, Opts, "conference.@HOST@"),
case gen_mod:db_type(Opts) of
mnesia ->
- update_tables(MyHost),
mnesia:create_table(muc_room,
[{disc_copies, [node()]},
{attributes,
@@ -249,6 +248,7 @@ init([Host, Opts]) ->
[{disc_copies, [node()]},
{attributes,
record_info(fields, muc_registered)}]),
+ update_tables(MyHost),
mnesia:add_table_index(muc_registered, nick);
_ ->
ok