mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
minor improvement for best readability
SVN Revision: 2014
This commit is contained in:
parent
549fa6e836
commit
cd6587d9df
@ -186,10 +186,9 @@ receive_packet(From, To, {xmlelement, "presence", Attrs, Els}) ->
|
||||
"unsubscribed" ->
|
||||
ok;
|
||||
"unavailable" ->
|
||||
mod_caps:clear_caps(From);
|
||||
clear_caps(From);
|
||||
_ ->
|
||||
Caps = mod_caps:read_caps(Els),
|
||||
mod_caps:note_caps(To#jid.lserver, From, Caps)
|
||||
note_caps(To#jid.lserver, From, read_caps(Els))
|
||||
end;
|
||||
receive_packet(_, _, _) ->
|
||||
ok.
|
||||
|
Loading…
Reference in New Issue
Block a user