24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-02 21:17:12 +02:00

Fix crash when destroying room without providing reason (#1954)

This commit is contained in:
Badlop 2017-08-21 15:57:48 +02:00
parent ba9a79c89c
commit 2fa6e2fd90

View File

@ -492,7 +492,7 @@ handle_event({destroy, Reason}, _StateName,
handle_event(destroy, StateName, StateData) -> handle_event(destroy, StateName, StateData) ->
?INFO_MSG("Destroyed MUC room ~s", ?INFO_MSG("Destroyed MUC room ~s",
[jid:encode(StateData#state.jid)]), [jid:encode(StateData#state.jid)]),
handle_event({destroy, undefined}, StateName, StateData); handle_event({destroy, <<"">>}, StateName, StateData);
handle_event({set_affiliations, Affiliations}, handle_event({set_affiliations, Affiliations},
StateName, StateData) -> StateName, StateData) ->
{next_state, StateName, {next_state, StateName,