Author: Kev <klmitch@mit.edu>
authorKevin L. Mitchell <klmitch@mit.edu>
Fri, 29 Jun 2001 20:41:35 +0000 (20:41 +0000)
committerKevin L. Mitchell <klmitch@mit.edu>
Fri, 29 Jun 2001 20:41:35 +0000 (20:41 +0000)
Log message:

A user that did mode <nick> -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 <dbtem@yahoo.com> for spotting this one.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@526 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/s_user.c

index e0f875e53084e6a1d4cebcd06299ee93746d6855..bb75115db78c4ab41e864c282903b2e4d7c74d11 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2001-06-29  Kevin L. Mitchell  <klmitch@mit.edu>
 
+       * 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
index 3af97a6d5e7fb30e34044e334a316e3d01fe5b86..b0ecdf76f63abc8cdbb8b1ca77296afe4744a6c6 100644 (file)
@@ -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