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.