]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
Return an error upon trying to set orphaned cmode, rather than just silently ignoring...
authorB.Greenham <redacted>
Mon, 11 Oct 2010 18:27:47 +0000 (14:27 -0400)
committerB.Greenham <redacted>
Mon, 11 Oct 2010 18:27:47 +0000 (14:27 -0400)
src/chmode.c

index b1b1d45937f187823f7c004db821561f63bd7ed1..a1353693019a3e5718633daf99a309292f9721b2 100644 (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)
 {
        if(MyClient(source_p))
+       {
+               sendto_one_numeric(source_p, 469, "Mode %c is disabled.", c);
                return;
+       }
         
        if((dir == MODE_ADD) && !(chptr->mode.mode & mode_type))
        {