Use misc:atom_to_binary/1 instead of the deprecated jlib.erl (#1510)

This commit is contained in:
Badlop 2017-05-10 12:05:52 +02:00
parent 6b8c61b3a2
commit e890525788
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ export(_Server) ->
LPeer = jid:encode(jid:tolower(Peer)),
XML = fxml:element_to_binary(Pkt),
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, "
"peer, bare_peer, xml, txt, kind, nick) "
"values (%(SUser)s, %(TStmp)d, %(LPeer)s, "