# HG changeset patch # User Matthew Wild # Date 1739460697 0 # Node ID 22f1444f08f98ba1e934d7151f00478ece71f230 # Parent f5c7fe7bbe3bedce6e59e068573eaec43f1419eb usermanager: Include role_name in event for consistency with the 'removed' event diff -r f5c7fe7bbe3b -r 22f1444f08f9 core/usermanager.lua --- a/core/usermanager.lua Thu Feb 13 15:31:14 2025 +0000 +++ b/core/usermanager.lua Thu Feb 13 15:31:37 2025 +0000 @@ -244,7 +244,7 @@ local role, err = hosts[host].authz.add_user_secondary_role(user, role_name); if role then prosody.events.fire_event("user-role-added", { - username = user, host = host, role = role; + username = user, host = host, role_name = role_name, role = role; }); end return role, err;