Skip to content

Conversation

skizzerz
Copy link
Contributor

When default umodes are changed in ircd.conf, these changes will now be
applied to all local clients upon receiving a /rehash. We track which
umodes a user has explicitly (un)set and avoid modifying those umodes
when changing the defaults -- only umodes that a user didn't explicitly
touch are subject to change on rehash.

When default umodes are changed in ircd.conf, these changes will now be
applied to all local clients upon receiving a /rehash. We track which
umodes a user has explicitly (un)set and avoid modifying those umodes
when changing the defaults -- only umodes that a user didn't explicitly
touch are subject to change on rehash.
@edk0
Copy link
Contributor

edk0 commented May 21, 2022

Hmm. It'd be nice if setting umode -R when you're already -R would mark R as a changed umode, but clearly harder to do that with how user_mode works now.

Now when e.g. a user does mode -R when they are already -R, we will
store that mode as part of their changed modes, so that should the
default umodes change in the future we will not attempt to manipulate
the +R flag on that user.
@skizzerz
Copy link
Contributor Author

@edk0 Wasn't significantly harder to do, so I added that feature in as well.

@edk0
Copy link
Contributor

edk0 commented May 27, 2022

This currently sets people -Z when the default umodes change

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.

2 participants