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

snote when an oper sets a chm_hidden mode #303

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

Conversation

jesopo
Copy link
Member

@jesopo jesopo commented Dec 4, 2021

unideal for code duplication. open to better suggestions

closes #105

@jesopo jesopo requested a review from edk0 December 4, 2021 21:31
@jesopo
Copy link
Member Author

jesopo commented Dec 6, 2021

maybe this should go for oper-only but non-hidden modes too like +LP

sendto_channel_local_priv(IsServer(source_p) ? fakesource_p : source_p,
send_flags, priv, chptr, "%s %s", modebuf, parabuf);
if (priv != NULL && IsClient(source_p))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't appear to be the test you think it is? priv is only set to non-null when flags is ONLY_OPERS (in which case it is set to auspex:cmodes, which is not the priv used to set the mode), and the only mode changes with mems set to ONLY_OPERS are chm_hidden modes.

sendto_channel_local_priv(IsServer(source_p) ? fakesource_p : source_p,
send_flags, priv, chptr, "%s %s", modebuf, parabuf);
if (priv != NULL && IsClient(source_p))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto

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.

snote when an oper sets/unsets a chm_hidden mode
3 participants