diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl index 2a1ca6011..fde43694c 100644 --- a/src/mod_muc_room.erl +++ b/src/mod_muc_room.erl @@ -492,7 +492,7 @@ handle_event({destroy, Reason}, _StateName, handle_event(destroy, StateName, StateData) -> ?INFO_MSG("Destroyed MUC room ~s", [jid:encode(StateData#state.jid)]), - handle_event({destroy, undefined}, StateName, StateData); + handle_event({destroy, <<"">>}, StateName, StateData); handle_event({set_affiliations, Affiliations}, StateName, StateData) -> {next_state, StateName,