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

Update calls of old xml_stream and xml, to exmpp.

This commit is contained in:
Badlop 2010-04-14 16:45:37 +02:00
parent 7471d49b5a
commit 58a4b594db
2 changed files with 2 additions and 3 deletions

View File

@ -120,7 +120,6 @@
tls,
translate,
xml,
xml_stream,
'XmppAddr'
]},
{registered, [ejabberd,

View File

@ -1360,9 +1360,9 @@ raw_to_item(NodeId, {ItemId, SJID, Creation, Modification, XML}) ->
[T1,T2,T3] = string:tokens(Str, ":"),
{l2i(T1), l2i(T2), l2i(T3)}
end,
Payload = case xml_stream:parse_element(XML) of
Payload = case exmpp_xmlstream:parse_element(XML) of
{error, _Reason} -> [];
El -> [El]
[El] -> [El]
end,
#pubsub_item{itemid = {ItemId, NodeId},
creation={ToTime(Creation), JID},