25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Merge pull request #561 from weiss/muc-mark-private

Tag private MUC messages with muc#user namespace
This commit is contained in:
Evgeny Khramtsov 2015-05-06 13:56:13 +03:00
commit b0b3870b2e

View File

@ -570,7 +570,10 @@ normal_state({route, From, ToNick,
FromNickJID =
jlib:jid_replace_resource(StateData#state.jid,
FromNick),
[ejabberd_router:route(FromNickJID, ToJID, Packet)
X = #xmlel{name = <<"x">>,
attrs = [{<<"xmlns">>, ?NS_MUC_USER}]},
PrivMsg = xml:append_subtags(Packet, [X]),
[ejabberd_router:route(FromNickJID, ToJID, PrivMsg)
|| ToJID <- ToJIDs];
true ->
ErrText =