mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-18 22:15:20 +02:00
Use misc:atom_to_binary/1 instead of the deprecated jlib.erl (#1510)
This commit is contained in:
parent
6b8c61b3a2
commit
e890525788
|
@ -212,7 +212,7 @@ export(_Server) ->
|
||||||
LPeer = jid:encode(jid:tolower(Peer)),
|
LPeer = jid:encode(jid:tolower(Peer)),
|
||||||
XML = fxml:element_to_binary(Pkt),
|
XML = fxml:element_to_binary(Pkt),
|
||||||
Body = fxml:get_subtag_cdata(Pkt, <<"body">>),
|
Body = fxml:get_subtag_cdata(Pkt, <<"body">>),
|
||||||
SType = jlib:atom_to_binary(Type),
|
SType = misc:atom_to_binary(Type),
|
||||||
[?SQL("insert into archive (username, timestamp, "
|
[?SQL("insert into archive (username, timestamp, "
|
||||||
"peer, bare_peer, xml, txt, kind, nick) "
|
"peer, bare_peer, xml, txt, kind, nick) "
|
||||||
"values (%(SUser)s, %(TStmp)d, %(LPeer)s, "
|
"values (%(SUser)s, %(TStmp)d, %(LPeer)s, "
|
||||||
|
|
Loading…
Reference in New Issue
Block a user