Skip to content

feat: new hook muc_affiliation_changed#4551

Open
marc0s wants to merge 1 commit intoprocessone:masterfrom
marc0s:feat/run-hook-on-muc-affiliation-change
Open

feat: new hook muc_affiliation_changed#4551
marc0s wants to merge 1 commit intoprocessone:masterfrom
marc0s:feat/run-hook-on-muc-affiliation-change

Conversation

@marc0s
Copy link
Copy Markdown
Contributor

@marc0s marc0s commented Mar 23, 2026

This change adds a new muc_affiliation_changed hook to mod_muc. Whenever an affiliation is changed this hook is fired.

I talked about it briefly in the ejabberd MUC a few weeks ago.

Maybe sending the whole room's state in the callback is overkill and it may be changed to send only the room's JID instead. Feel free to comment on this.

Any feedback will be appreciated.

This change adds a new `muc_affiliation_changed` hook to
`mod_muc`. Whenever an affiliation is changed this hook is fired.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant