Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for default umodes to change at runtime #336

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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