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:
commit
b0b3870b2e
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user