#1636 MUC: Problem overriding affiliations on room creation from plugin

Reporter Zash
Owner Nobody
Created
Updated
Stars ★ (1)
Tags
  • Type-Defect
  • Priority-Medium
  • Component-MUC
  • Status-Accepted
  1. Zash on

    What steps will reproduce the problem? Write a plugin that overrides room affiliations from the 'muc-room-pre-create' event. What is the expected output? Overriden affiliations should stay overriden. What do you see instead? If the hook returns `nil` then another hook adds the sender of the stanza that created the room as owner. If the hook returns `false` then #1635 is triggered. What version of the product are you using? Affects 0.11 Please provide any additional information below. Before https://hg.prosody.im/0.11/rev/e488a90195bc the sender of the room-creating stanza was only added as room owner if there were no existing affiliations, but since then this code was unconditional unless the whole event chain is stopped, but see #1635.

New comment

Not published. Used for spam prevention and optional update notifications.