25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Bugfix in starting persistent rooms when mod_muc odbc (EJAB-1365)

This commit is contained in:
Badlop 2010-12-23 01:06:41 +01:00
parent 93787bee73
commit 8c4e4e5f91

View File

@ -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.