#1635 MUC: Problem stopping the muc-room-pre-create event
Reporter
Zash
Owner
Nobody
Created
Updated
Stars
★ (1)
Tags
Priority-Medium
Status-Accepted
Component-MUC
Type-Defect
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.
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.
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.
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.
https://hg.prosody.im/0.11/rev/e488a90195bc
ChangesMUC: Problem overriding affiliations on room creationMUC: Problem stopping the muc-room-pre-create event