25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +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]; | Status2];
false -> Status2 false -> Status2
end, end,
Status4 = case (StateData#state.config)#config.logging of Status4 = case (StateData#state.config)#config.logging == true
andalso NJID == Info#user.jid of
true -> true ->
[#xmlel{name = <<"status">>, [#xmlel{name = <<"status">>,
attrs = attrs =