25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Send presence with code 170 only in initial presence from MUC

This commit is contained in:
Paweł Chmielowski 2016-02-01 11:30:17 +01:00
parent d3ee2a9c18
commit dc52ec904c

View File

@ -2217,7 +2217,8 @@ send_new_presence1(NJID, Reason, StateData, OldStateData) ->
| Status2];
false -> Status2
end,
Status4 = case (StateData#state.config)#config.logging of
Status4 = case (StateData#state.config)#config.logging == true
andalso NJID == Info#user.jid of
true ->
[#xmlel{name = <<"status">>,
attrs =