Return an error upon trying to set orphaned cmode, rather than just silently ignoring the mode command.
This commit is contained in:
parent
4c16b692f3
commit
b7262e0cce
|
@ -585,7 +585,10 @@ chm_orphaned(struct Client *source_p, struct Channel *chptr,
|
||||||
const char **parv, int *errors, int dir, char c, long mode_type)
|
const char **parv, int *errors, int dir, char c, long mode_type)
|
||||||
{
|
{
|
||||||
if(MyClient(source_p))
|
if(MyClient(source_p))
|
||||||
|
{
|
||||||
|
sendto_one_numeric(source_p, 469, "Mode %c is disabled.", c);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if((dir == MODE_ADD) && !(chptr->mode.mode & mode_type))
|
if((dir == MODE_ADD) && !(chptr->mode.mode & mode_type))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue