From b7262e0cce548a229abf9f9a0a04485f573ee75f Mon Sep 17 00:00:00 2001 From: "B.Greenham" Date: Mon, 11 Oct 2010 14:27:47 -0400 Subject: [PATCH] Return an error upon trying to set orphaned cmode, rather than just silently ignoring the mode command. --- src/chmode.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/chmode.c b/src/chmode.c index b1b1d45..a135369 100644 --- a/src/chmode.c +++ b/src/chmode.c @@ -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)) {