]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
Send numeric 735 on MLOCK policy-restricted mode changes that are ignored.
authorWilliam Pitcock <redacted>
Tue, 24 Aug 2010 00:04:46 +0000 (19:04 -0500)
committerWilliam Pitcock <redacted>
Tue, 24 Aug 2010 00:04:46 +0000 (19:04 -0500)
src/chmode.c
src/messages.tab

index a676d0ae495f6c453d3c901c64a7fdf6a3b6413a..a99b586a3f95ee925161d67523d468c6abd26907 100644 (file)
@@ -2086,7 +2086,10 @@ set_channel_mode(struct Client *client_p, struct Client *source_p,
                default:
                        /* 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))
+                       {
+                               sendto_one_numeric(source_p, ERR_MLOCKRESTRICTED, form_str(ERR_MLOCKRESTRICTED), chptr->name, c, chptr->mode_lock);
                                continue;
+                       }
                        chmode_table[(unsigned char) c].set_func(fakesource_p, chptr, alevel,
                                       parc, &parn, parv,
                                       &errors, dir, c,
index d652836f40e025b9c43f85294093d76fe898f9c0..686587469305db85acaac988c5510c7ce4b9512c 100644 (file)
@@ -756,7 +756,7 @@ static  const char *  replies[] = {
 /* 732 RPL_MONLIST */          ":%s 732 %s :%s",
 /* 733 RPL_ENDOFMONLIST */     ":%s 733 %s :End of MONITOR list",
 /* 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,
 /* 737 ERR_NOCOMMONCHAN*/      "%s :is in +G mode (server-side ignore) and you do not share a common channel with them.",
 /* 738 */      NULL,