mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
chanroles: ENCAP GRANT should work under the assumption that we want to zero out
this makes setting new roles on a user much easier as we're just setting the roles they should be having, instead of having to try to revoke roles we don't necessarily know about.
This commit is contained in:
parent
ae79dab6ae
commit
460b6d9fb2
1 changed files with 2 additions and 2 deletions
|
@ -68,8 +68,8 @@ me_grant(struct Client *client_p, struct Client *source_p, int parc, const char
|
|||
if (!(msptr = find_channel_membership(chptr, target_p)))
|
||||
return 0;
|
||||
|
||||
/* Unset */
|
||||
RemoveChanRole(msptr, CHANROLE_UNSET);
|
||||
/* unset all chanroles as we're setting new ones */
|
||||
msptr->roles = 0;
|
||||
|
||||
t = LOCAL_COPY(parv[3]);
|
||||
for (s = rb_strtok_r(t, " ", &p); s; s = rb_strtok_r(NULL, " ", &p))
|
||||
|
|
Loading…
Reference in a new issue