summaryrefslogtreecommitdiff
path: root/src/mod_muc.erl
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2021-10-01 12:11:51 +0200
committerBadlop <badlop@process-one.net>2022-09-13 17:55:03 +0200
commit4d3875f4ff1c274c26c56344a3d07360065c8521 (patch)
tree7c1795cd753c6fc6d7dfe4631bd9ebc40cabe197 /src/mod_muc.erl
parentmake-binaries: Bump Erlang/OTP version to 24.3.4.5 (diff)
Store role, and use it when joining a moderated room (#3330)
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 8ad16a10..c1c1c7f2 100644
--- a/src/mod_muc.erl
+++ b/src/mod_muc.erl
@@ -1177,7 +1177,7 @@ opts_to_binary(Opts) ->
{subject, iolist_to_binary(Subj)};
({subject_author, Author}) ->
{subject_author, iolist_to_binary(Author)};
- ({affiliations, Affs}) ->
+ ({AffOrRole, Affs}) when (AffOrRole == affiliation) or (AffOrRole == role) ->
{affiliations, lists:map(
fun({{U, S, R}, Aff}) ->
NewAff =