Clear channel manager bit when wiping out local chanops in a burst.
authorMichael Poole <mdpoole@troilus.org>
Thu, 7 Apr 2005 02:45:05 +0000 (02:45 +0000)
committerMichael Poole <mdpoole@troilus.org>
Thu, 7 Apr 2005 02:45:05 +0000 (02:45 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1357 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/m_burst.c

index 434aa74002deb5a71668046e010786e932916b58..3a3bee8b5b4164e0bbaf237cd31f0fd8d4e171d2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-04-06  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/m_burst.c (ms_burst): Clear channel manager bit when wiping
+       out locally opped and voiced channel members.
+
 2005-04-06  Michael Poole <mdpoole@troilus.org>
 
        * include/numeric.h (RPL_APASSWARN): Replace with three distinct
index 622b3151287c5bc827ec69592b3c80294038ec2d..d367e35301116187f14fd1620537e7a344d0719d 100644 (file)
@@ -537,8 +537,9 @@ int ms_burst(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
          modebuf_mode_client(mbuf, MODE_DEL | CHFL_CHANOP, member->user);
        if (member->status & CHFL_VOICE)
          modebuf_mode_client(mbuf, MODE_DEL | CHFL_VOICE, member->user);
-       member->status = ((member->status & ~(CHFL_CHANOP | CHFL_VOICE)) |
-                         CHFL_DEOPPED);
+       member->status = (member->status
+                          & ~(CHFL_CHANNEL_MANAGER | CHFL_CHANOP | CHFL_VOICE))
+                        | CHFL_DEOPPED;
       }
     }