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

Forgot to convert a <presence/> from the new to the old record.

SVN Revision: 1396
This commit is contained in:
Jean-Sébastien Pédron 2008-07-01 09:13:49 +00:00
parent 83a33726ce
commit b9074097da
2 changed files with 7 additions and 1 deletions

View File

@ -10,6 +10,9 @@
* src/jlib.erl: Add function short_bare_jid/1. * src/jlib.erl: Add function short_bare_jid/1.
* src/ejabberd_sm.erl: Forgot to convert a <presence/> from the new to
the old record.
2008-06-30 Jean-Sébastien Pédron <js.pedron@meetic-corp.com> 2008-06-30 Jean-Sébastien Pédron <js.pedron@meetic-corp.com>
* src/Makefile.in: Remove the -I flag for exmpp includes; the * src/Makefile.in: Remove the -I flag for exmpp includes; the

View File

@ -190,8 +190,11 @@ get_user_info(User, Server, Resource) ->
set_presence(SID, User, Server, Resource, Priority, Presence, Info) -> set_presence(SID, User, Server, Resource, Priority, Presence, Info) ->
set_session(SID, User, Server, Resource, Priority, Info), set_session(SID, User, Server, Resource, Priority, Info),
% XXX OLD FORMAT: Presence.
PresenceOld = exmpp_xml:xmlel_to_xmlelement(Presence,
[?DEFAULT_NS], ?PREFIXED_NS),
ejabberd_hooks:run(set_presence_hook, exmpp_stringprep:nameprep(Server), ejabberd_hooks:run(set_presence_hook, exmpp_stringprep:nameprep(Server),
[User, Server, Resource, Presence]). [User, Server, Resource, PresenceOld]).
unset_presence(SID, User, Server, Resource, Status, Info) -> unset_presence(SID, User, Server, Resource, Status, Info) ->
set_session(SID, User, Server, Resource, undefined, Info), set_session(SID, User, Server, Resource, undefined, Info),