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

exmpp_xml:get_element_by_name/2 is deprecated; use

exmpp_xml:get_element/2 instead.

SVN Revision: 1592
This commit is contained in:
Jean-Sébastien Pédron 2008-10-02 13:34:52 +00:00
parent 7c28aba6a1
commit 24cb7cb039
2 changed files with 6 additions and 2 deletions

View File

@ -4,6 +4,10 @@
tuple was used in a function expecting a #jid; thanks to Pablo
Polvorin again!
* src/mod_announce.erl (get_stored_motd):
exmpp_xml:get_element_by_name/2 is deprecated; use
exmpp_xml:get_element/2 instead.
2008-10-01 Jean-Sébastien Pédron <js.pedron@meetic-corp.com>
* src/mod_offline_odbc.erl, src/mod_vcard_odbc.erl,

View File

@ -839,8 +839,8 @@ send_motd(#jid{lnode = LUser, ldomain = LServer} = JID) ->
get_stored_motd(LServer) ->
case catch mnesia:dirty_read({motd, LServer}) of
[#motd{packet = Packet}] ->
{exmpp_xml:get_cdata_as_list(exmpp_xml:get_element_by_name(Packet, 'subject')),
exmpp_xml:get_cdata_as_list(exmpp_xml:get_element_by_name(Packet, 'body'))};
{exmpp_xml:get_cdata_as_list(exmpp_xml:get_element(Packet, 'subject')),
exmpp_xml:get_cdata_as_list(exmpp_xml:get_element(Packet, 'body'))};
_ ->
{"", ""}
end.