From ca641c62f6350a683d24a2f2d01a4f3f2b7142fd Mon Sep 17 00:00:00 2001 From: "Kevin L. Mitchell" Date: Fri, 29 Jun 2001 20:41:35 +0000 Subject: [PATCH] Author: Kev Log message: A user that did mode -owsg would not stop getting server notices; fixed so that the snomask is cleared if FLAGS_SERVNOTICE isn't set. This is a bit redundant, due to the design of set_user_mode()... Thanks to Braden for spotting this one. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@526 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 3 +++ ircd/s_user.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e0f875e..bb75115 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2001-06-29 Kevin L. Mitchell + * ircd/s_user.c (set_user_mode): clear the snomask if the user + isn't supposed to receive server notices anymore + * ircd/ircd_features.c: change CONFIG_OPERCMDS to default to FALSE * configure.in: use AC_MSG_CHECKING/AC_MSG_RESULT when checking diff --git a/ircd/s_user.c b/ircd/s_user.c index 3af97a6..b0ecdf7 100644 --- a/ircd/s_user.c +++ b/ircd/s_user.c @@ -1218,7 +1218,8 @@ int set_user_mode(struct Client *cptr, struct Client *sptr, int parc, char *parv set_snomask(sptr, tmpmask, SNO_SET); if (cli_snomask(sptr) && snomask_given) send_reply(sptr, RPL_SNOMASK, cli_snomask(sptr), cli_snomask(sptr)); - } + } else + set_snomask(sptr, 0, SNO_SET); } /* * Compare new flags with old flags and send string which -- 2.20.1