25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

minor improvement for best readability

SVN Revision: 2014
This commit is contained in:
Christophe Romain 2009-04-10 08:40:10 +00:00
parent 549fa6e836
commit cd6587d9df

View File

@ -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.