Skip to content

Commit

Permalink
Merge pull request #4387 from esl/muc-presence-crash
Browse files Browse the repository at this point in the history
Fix MUC room crash when handling old protocol stanza
  • Loading branch information
chrzaszcz authored Oct 29, 2024
2 parents d5584c9 + c4f2826 commit 80d910c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/muc/mod_muc_room.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,8 @@ handle_new_user(From, Nick, Packet, StateData, Attrs) ->
case exml_query:path(Packet, [{element, <<"x">>}]) of
undefined ->
Response = kick_stanza_for_old_protocol(Attrs),
ejabberd_router:route(jid:replace_resource(StateData#state.jid, Nick), From, Response);
ejabberd_router:route(jid:replace_resource(StateData#state.jid, Nick), From, Response),
StateData;
_ ->
add_new_user(From, Nick, Packet, StateData)
end.
Expand Down

0 comments on commit 80d910c

Please sign in to comment.