mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +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:
parent
7624284070
commit
9a4f5bb2d9
@ -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
|
||||
|
@ -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},
|
||||
|
Loading…
Reference in New Issue
Block a user