Send numeric 735 on MLOCK policy-restricted mode changes that are ignored.
This commit is contained in:
parent
32de9f4e67
commit
01ed04abaf
2 changed files with 4 additions and 1 deletions
|
@ -1664,7 +1664,10 @@ set_channel_mode(struct Client *client_p, struct Client *source_p,
|
||||||
default:
|
default:
|
||||||
/* If this mode char is locked, don't allow local users to change it. */
|
/* If this mode char is locked, don't allow local users to change it. */
|
||||||
if (MyClient(source_p) && chptr->mode_lock && strchr(chptr->mode_lock, c))
|
if (MyClient(source_p) && chptr->mode_lock && strchr(chptr->mode_lock, c))
|
||||||
|
{
|
||||||
|
sendto_one_numeric(source_p, ERR_MLOCKRESTRICTED, form_str(ERR_MLOCKRESTRICTED), chptr->name, c, chptr->mode_lock);
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
chmode_table[(unsigned char) c].set_func(fakesource_p, chptr, alevel,
|
chmode_table[(unsigned char) c].set_func(fakesource_p, chptr, alevel,
|
||||||
parc, &parn, parv,
|
parc, &parn, parv,
|
||||||
&errors, dir, c,
|
&errors, dir, c,
|
||||||
|
|
|
@ -756,7 +756,7 @@ static const char * replies[] = {
|
||||||
/* 732 RPL_MONLIST */ ":%s 732 %s :%s",
|
/* 732 RPL_MONLIST */ ":%s 732 %s :%s",
|
||||||
/* 733 RPL_ENDOFMONLIST */ ":%s 733 %s :End of MONITOR list",
|
/* 733 RPL_ENDOFMONLIST */ ":%s 733 %s :End of MONITOR list",
|
||||||
/* 734 ERR_MONLISTFULL */ ":%s 734 %s %d %s :Monitor list is full",
|
/* 734 ERR_MONLISTFULL */ ":%s 734 %s %d %s :Monitor list is full",
|
||||||
/* 735 ERR_MLOCKRESTRICTED */ "%s %c :This mode cannot be set because it is restricted to Services only.",
|
/* 735 ERR_MLOCKRESTRICTED */ "%s %c %s :MODE cannot be set due to channel having an active MLOCK restriction policy",
|
||||||
/* 736 */ NULL,
|
/* 736 */ NULL,
|
||||||
/* 737 */ NULL,
|
/* 737 */ NULL,
|
||||||
/* 738 */ NULL,
|
/* 738 */ NULL,
|
||||||
|
|
Loading…
Reference in a new issue