New Prosody Module to set MUC affiliations for local users on registration. #21
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: phryk-evil-mad-sciences-llc/xmpp-service#21
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This should be pretty straightforward.Look at https://hg.prosody.im/prosody-modules/file/27f7ed9f50cd/mod_groups_internal/mod_groups_internal.lua
Specifically
setup()
(and how it's hooked) to get a working referenceto the MUC module.
Relevant hooks: for affiliations:
user-registered
exists, but is only fired bymod_register_ibr
(in-band reg)mod_watchregistrations
also depends on this event, deploy it and check if the event is fired for invite-based registrationsmod_invites_register_api
fires this event, so we good. (:prosodyctl adduser
however does notAlso, e.g. where accounts are not created via prosody,
but the authentication module just declares a previously
unknown user login successful
Hooking authentication or resource binding won't be
affected by that
* ->
resource-bind
.user-deleted
Also, setting affiliation:
room:set_affiliation(true, user_jid, "member")