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)),
|
||||
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, "
|
||||
|
|
Loading…
Reference in New Issue