diff options
author | Alexey Shchepin <alexey@process-one.net> | 2017-03-14 02:31:51 +0300 |
---|---|---|
committer | Alexey Shchepin <alexey@process-one.net> | 2017-03-14 02:31:51 +0300 |
commit | 069d28b1eda5384a67fa5fb2ac14b7cdc86eec31 (patch) | |
tree | c5c7b26c6703746ae128eccae264ead5a3d44ff2 /src/mod_muc.erl | |
parent | Fix 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.erl | 2 |
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}). |