summaryrefslogtreecommitdiff
path: root/src/mod_muc.erl
diff options
context:
space:
mode:
authorAlexey Shchepin <alexey@process-one.net>2017-03-14 02:31:51 +0300
committerAlexey Shchepin <alexey@process-one.net>2017-03-14 02:31:51 +0300
commit069d28b1eda5384a67fa5fb2ac14b7cdc86eec31 (patch)
treec5c7b26c6703746ae128eccae264ead5a3d44ff2 /src/mod_muc.erl
parentFix handling of xmlrpc request without authentication structure (diff)
Get rid of p1_sha calls
Diffstat (limited to 'src/mod_muc.erl')
-rw-r--r--src/mod_muc.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_muc.erl b/src/mod_muc.erl
index 563f4c68..f9488cf9 100644
--- a/src/mod_muc.erl
+++ b/src/mod_muc.erl
@@ -609,7 +609,7 @@ process_muc_unique(#iq{type = set, lang = Lang} = IQ) ->
xmpp:make_error(IQ, xmpp:err_not_allowed(Txt, Lang));
process_muc_unique(#iq{from = From, type = get,
sub_els = [#muc_unique{}]} = IQ) ->
- Name = p1_sha:sha(term_to_binary([From, p1_time_compat:timestamp(),
+ Name = str:sha(term_to_binary([From, p1_time_compat:timestamp(),
randoms:get_string()])),
xmpp:make_iq_result(IQ, #muc_unique{name = Name}).