Mercurial > prosody-hg
comparison plugins/muc/muc.lib.lua @ 9716:5281a795d6df 0.11
MUC: Adjust priorities of muc-get-default-role handlers (fixes #1272)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 19 Dec 2018 23:14:13 +0000 |
| parents | 28d4b9d5a432 |
| children | 537f6a27bdb6 81ef96368bff |
comparison
equal
deleted
inserted
replaced
| 9714:34c48eed4650 | 9716:5281a795d6df |
|---|---|
| 59 if event.affiliation_rank >= valid_affiliations.admin then | 59 if event.affiliation_rank >= valid_affiliations.admin then |
| 60 return "moderator"; | 60 return "moderator"; |
| 61 elseif event.affiliation_rank >= valid_affiliations.none then | 61 elseif event.affiliation_rank >= valid_affiliations.none then |
| 62 return "participant"; | 62 return "participant"; |
| 63 end | 63 end |
| 64 end); | 64 end, -1); |
| 65 | 65 |
| 66 --- Occupant functions | 66 --- Occupant functions |
| 67 function room_mt:new_occupant(bare_real_jid, nick) | 67 function room_mt:new_occupant(bare_real_jid, nick) |
| 68 local occupant = occupant_lib.new(bare_real_jid, nick); | 68 local occupant = occupant_lib.new(bare_real_jid, nick); |
| 69 local affiliation = self:get_affiliation(bare_real_jid); | 69 local affiliation = self:get_affiliation(bare_real_jid); |
