mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
* src/ejabberd_c2s.erl: Added comments.
SVN Revision: 1823
This commit is contained in:
parent
43e12a3702
commit
579e1972d5
@ -1,3 +1,7 @@
|
||||
2009-01-17 Mickael Remond <mremond@process-one.net>
|
||||
|
||||
* src/ejabberd_c2s.erl: Added comments.
|
||||
|
||||
2009-01-16 Badlop <badlop@process-one.net>
|
||||
|
||||
* src/mod_privacy.erl: Privacy list items must be processed in the
|
||||
|
@ -895,7 +895,8 @@ session_established({xmlstreamerror, _}, StateData) ->
|
||||
session_established(closed, StateData) ->
|
||||
{stop, normal, StateData}.
|
||||
|
||||
|
||||
%% Process packets sent by user (coming from user on c2s XMPP
|
||||
%% connection)
|
||||
session_established2(El, StateData) ->
|
||||
{xmlelement, Name, Attrs, _Els} = El,
|
||||
User = StateData#state.user,
|
||||
@ -1053,6 +1054,7 @@ handle_info(replaced, _StateName, StateData) ->
|
||||
?SERRT_CONFLICT(Lang, "Replaced by new connection"))
|
||||
++ ?STREAM_TRAILER),
|
||||
{stop, normal, StateData#state{authenticated = replaced}};
|
||||
%% Process Packets that are to be send to the user
|
||||
handle_info({route, From, To, Packet}, StateName, StateData) ->
|
||||
{xmlelement, Name, Attrs, Els} = Packet,
|
||||
{Pass, NewAttrs, NewState} =
|
||||
@ -1457,6 +1459,7 @@ process_presence_probe(From, To, StateData) ->
|
||||
end
|
||||
end.
|
||||
|
||||
%% User updates his presence (non-directed presence packet)
|
||||
presence_update(From, Packet, StateData) ->
|
||||
{xmlelement, _Name, Attrs, _Els} = Packet,
|
||||
case xml:get_attr_s("type", Attrs) of
|
||||
@ -1560,6 +1563,7 @@ presence_update(From, Packet, StateData) ->
|
||||
NewState
|
||||
end.
|
||||
|
||||
%% User sends a directed presence packet
|
||||
presence_track(From, To, Packet, StateData) ->
|
||||
{xmlelement, _Name, Attrs, _Els} = Packet,
|
||||
LTo = jlib:jid_tolower(To),
|
||||
|
Loading…
Reference in New Issue
Block a user