Skip to content

extensions/chm_serviceonly.c: only allow service users to join#345

Draft
jesopo wants to merge 1 commit intomainfrom
jess/chmode-service-only
Draft

extensions/chm_serviceonly.c: only allow service users to join#345
jesopo wants to merge 1 commit intomainfrom
jess/chmode-service-only

Conversation

@jesopo
Copy link
Copy Markdown
Member

@jesopo jesopo commented Jun 16, 2022

intended usecase is to allow for channels that are IPC between atheme and a pseudoserver; this may be too niche for upstream

static int
_modinit(void)
{
mymode = cflag_add('X', chm_staff);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

placeholder character, please suggest better options

struct Client *source_p = data->client;
struct Channel *chptr = data->chptr;

if((chptr->mode.mode & mymode) && !IsService(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.

There is no way a local client can be a service, so the && !IsService(source_p) part could be removed.

This feels weird.

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.

3 participants