Skip to content

replace chm_staff and chm_hidden with cmode->priv and CHM_HIDDEN#288

Draft
jesopo wants to merge 2 commits intomainfrom
jess/chmode-priv
Draft

replace chm_staff and chm_hidden with cmode->priv and CHM_HIDDEN#288
jesopo wants to merge 2 commits intomainfrom
jess/chmode-priv

Conversation

@jesopo
Copy link
Copy Markdown
Member

@jesopo jesopo commented Oct 10, 2021

the first commit in this returns a *ChannelMode from cflag_add() so that ->priv and ->flags can be modified without having to add a bunch of params to cflag_add()

the purpose for this was to give +M/operpeace a priv instead of the setter having to be an admin, but this also allowed me to get rid off the duplicated code in chm_staff() and chm_hidden()

Copy link
Copy Markdown

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Approved.

@jesopo jesopo marked this pull request as draft October 30, 2021 14:58
@jesopo
Copy link
Copy Markdown
Member Author

jesopo commented Oct 30, 2021

draft because I've realised set_channel_mode needs work to not send new-flavour hidden modes to everyone

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.

1 participant