Return an error upon trying to set orphaned cmode, rather than just silently ignoring the mode command.

This commit is contained in:
B.Greenham 2010-10-11 14:27:47 -04:00
parent 4c16b692f3
commit b7262e0cce
1 changed files with 3 additions and 0 deletions

View File

@ -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))
{ {