Clear channel manager bit when wiping out local chanops in a burst.
[ircu2.10.12-pk.git] / ircd / m_burst.c
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;
       }
     }