aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2017-05-10 12:05:52 +0200
committerBadlop <badlop@process-one.net>2017-05-10 12:05:52 +0200
commite8905257886423d8332db50b1ea902b0500a33a2 (patch)
tree605b3c5b855cf8d2e3d1f9d4f41ca3b5580db954
parentUpdate comment: aux.erl was renamed to misc.erl (diff)
Use misc:atom_to_binary/1 instead of the deprecated jlib.erl (#1510)
-rw-r--r--src/mod_mam_sql.erl2
1 files changed, 1 insertions, 1 deletions
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, "