Skip to content

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