Skip to content

snote when an oper sets a chm_hidden mode - #303

Open
jesopo wants to merge 2 commits into
mainfrom
jess/chm-hidden-snote
Open

snote when an oper sets a chm_hidden mode#303
jesopo wants to merge 2 commits into
mainfrom
jess/chm-hidden-snote

Conversation

@jesopo

@jesopo jesopo commented Dec 4, 2021

Copy link
Copy Markdown
Member

unideal for code duplication. open to better suggestions

closes #105

@jesopo
jesopo requested a review from edk0 December 4, 2021 21:31
@jesopo

jesopo commented Dec 6, 2021

Copy link
Copy Markdown
Member Author

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

Comment thread ircd/chmode.c
{
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
Copy Markdown
Contributor

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.

Comment thread ircd/chmode.c
{
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
Copy Markdown
Contributor

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