From 8c4e4e5f917ba69f6363a383bf33e857a5dc49d7 Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 23 Dec 2010 01:06:41 +0100 Subject: [PATCH] Bugfix in starting persistent rooms when mod_muc odbc (EJAB-1365) --- src/mod_muc/mod_muc_room.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod_muc/mod_muc_room.erl b/src/mod_muc/mod_muc_room.erl index 692bc30d6..0702d0688 100644 --- a/src/mod_muc/mod_muc_room.erl +++ b/src/mod_muc/mod_muc_room.erl @@ -745,7 +745,7 @@ terminate({migrated, Clone}, _StateName, StateData) -> ?INFO_MSG("Migrating room ~s@~s to ~p on node ~p", [StateData#state.room, StateData#state.host, Clone, node(Clone)]), - mod_muc:room_destroyed(StateData#state.host, StateData#state.room, + mod_muc:room_destroyed(StateData#state.host, list_to_binary(StateData#state.room), self(), StateData#state.server_host), ok; terminate(Reason, _StateName, StateData) -> @@ -784,7 +784,7 @@ terminate(Reason, _StateName, StateData) -> tab_remove_online_user(LJID, StateData) end, [], StateData#state.users), add_to_log(room_existence, stopped, StateData), - mod_muc:room_destroyed(StateData#state.host, StateData#state.room, self(), + mod_muc:room_destroyed(StateData#state.host, list_to_binary(StateData#state.room), self(), StateData#state.server_host), ok.