diff options
author | Badlop <badlop@process-one.net> | 2011-12-08 16:35:31 +0100 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2011-12-08 16:35:31 +0100 |
commit | 13a9ca65a420f316aef0f5d33cef9c9639c804f5 (patch) | |
tree | 78c1bcc1d6b5ebfd8f472e133cc603dc713a4777 | |
parent | Add callback function print_state/1 for behavior p1_fsm (diff) |
Don't reveal invitee's resource when room informs invitor
Diffstat (limited to '')
-rw-r--r-- | src/mod_muc/mod_muc_room.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_muc/mod_muc_room.erl b/src/mod_muc/mod_muc_room.erl index 164805d9c..d12a91fab 100644 --- a/src/mod_muc/mod_muc_room.erl +++ b/src/mod_muc/mod_muc_room.erl @@ -4004,7 +4004,7 @@ check_decline_invitation(Packet) -> %% Send the decline to the inviter user. %% The original stanza must be slightly modified. send_decline_invitation({Packet, XEl, DEl, ToJID}, RoomJID, FromJID) -> - FromString = jlib:jid_to_string(FromJID), + FromString = jlib:jid_to_string(jlib:jid_remove_resource(FromJID)), {xmlelement, "decline", DAttrs, DEls} = DEl, DAttrs2 = lists:keydelete("to", 1, DAttrs), DAttrs3 = [{"from", FromString} | DAttrs2], |