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
2001-06-29 Kevin L. Mitchell <klmitch@mit.edu>
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
* ircd/ircd_features.c: change CONFIG_OPERCMDS to default to FALSE
* configure.in: use AC_MSG_CHECKING/AC_MSG_RESULT when checking
set_snomask(sptr, tmpmask, SNO_SET);
if (cli_snomask(sptr) && snomask_given)
send_reply(sptr, RPL_SNOMASK, cli_snomask(sptr), cli_snomask(sptr));
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
}
/*
* Compare new flags with old flags and send string which