#1635 MUC: Problem stopping the muc-room-pre-create event

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

    What steps will reproduce the problem? Write a plugin that overrides room configuration from the 'muc-room-pre-create' event, returning `false` to stop other processing. What is the expected output? Things should be fine. What do you see instead? The room is not kept track of (in the util.cache) leading to the room either being leaked or garbage-collected. What version of the product are you using? Affects 0.11 Please provide any additional information below. This happens because the tracking is done in an event.

  2. Zash on

    And the reason why you would want to return `false` is to prevent the affiliation hook from running. This is actually two closely related issues.

  3. Zash on

    https://hg.prosody.im/0.11/rev/e488a90195bc

    Changes
    • title MUC: Problem overriding affiliations on room creation MUC: Problem stopping the muc-room-pre-create event

New comment

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