From e8905257886423d8332db50b1ea902b0500a33a2 Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 10 May 2017 12:05:52 +0200 Subject: [PATCH] Use misc:atom_to_binary/1 instead of the deprecated jlib.erl (#1510) --- src/mod_mam_sql.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_mam_sql.erl b/src/mod_mam_sql.erl index 3f7f2c2b5..83e269328 100644 --- a/src/mod_mam_sql.erl +++ b/src/mod_mam_sql.erl @@ -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, " -- 2.40.0