Log message:
Fix a tiny presentation error that was resulting in a /clearmode that
removed no modes sending an empty HACK(4) notice
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@326
c9e4aea6-c8fd-4c43-8297-
357d70d61c8c
+2000-12-09 Kevin L. Mitchell <klmitch@mit.edu>
+
+ * ircd/channel.c (modebuf_mode): don't add empty modes...
+
2000-12-08 Kevin L. Mitchell <klmitch@mit.edu>
* include/send.h: add prio argument to send_buffer to select
mode &= (MODE_ADD | MODE_DEL | MODE_PRIVATE | MODE_SECRET | MODE_MODERATED |
MODE_TOPICLIMIT | MODE_INVITEONLY | MODE_NOPRIVMSGS);
+ if (!(mode & ~(MODE_ADD | MODE_DEL))) /* don't add empty modes... */
+ return;
+
if (mode & MODE_ADD) {
mbuf->mb_rem &= ~mode;
mbuf->mb_add |= mode;