aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2017-08-21 15:57:48 +0200
committerBadlop <badlop@process-one.net>2017-08-21 15:57:48 +0200
commit2fa6e2fd9065b0a2d669b9c02ebbddab31b4f934 (patch)
treeba735cb21e894ff3c6a10d1a1c1d9c38e946db78 /src
parentApply cosmetic changes to previous commit (diff)
Fix crash when destroying room without providing reason (#1954)
Diffstat (limited to 'src')
-rw-r--r--src/mod_muc_room.erl2
1 files changed, 1 insertions, 1 deletions
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,