From 24cb7cb0395988095f558ff13d4003a589a1aa25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Thu, 2 Oct 2008 13:34:52 +0000 Subject: [PATCH] exmpp_xml:get_element_by_name/2 is deprecated; use exmpp_xml:get_element/2 instead. SVN Revision: 1592 --- ChangeLog | 4 ++++ src/mod_announce.erl | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8111e0ed9..426d4c588 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 * src/mod_offline_odbc.erl, src/mod_vcard_odbc.erl, diff --git a/src/mod_announce.erl b/src/mod_announce.erl index e59e65fdb..f70c487cb 100644 --- a/src/mod_announce.erl +++ b/src/mod_announce.erl @@ -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.