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

When the status is not specified in a presence stanza, default to an

empty binary, not an empty string; this is what mod_last expects.

SVN Revision: 1579
This commit is contained in:
Jean-Sébastien Pédron 2008-09-29 10:31:24 +00:00
parent 7624284070
commit 9a4f5bb2d9
2 changed files with 5 additions and 1 deletions

View File

@ -7,6 +7,10 @@
* src/mod_disco.erl: Remove compatilibity code.
* src/ejabberd_c2s.erl: When the status is not specified in a presence
stanza, default to an empty binary, not an empty string; this is what
mod_last expects.
2008-09-25 Jean-Sébastien Pédron <js.pedron@meetic-corp.com>
* src/jlib.erl (timestamp_to_xml): Create an #xmlel element, not an

View File

@ -1382,7 +1382,7 @@ presence_update(From, Packet, StateData) ->
case exmpp_presence:get_type(Packet) of
'unavailable' ->
Status = case exmpp_presence:get_status(Packet) of
undefined -> "";
undefined -> <<>>;
S -> S
end,
Info = [{ip, StateData#state.ip}, {conn, StateData#state.conn},