mirror of
https://github.com/anope/anope.git
synced 2026-07-07 02:43:12 +02:00
Properly store our clients internal channel status's and burst them if needed.
Also made Flag::HasFlag use test() instead of operator[] to catch errors, and fixed an out of bounds access to a Flags bitset causing crashes on some systems.
This commit is contained in:
+2
-2
@@ -18,9 +18,9 @@ std::vector<NewsItem *> News;
|
||||
std::vector<std::bitset<32> > DefCon;
|
||||
bool DefConModesSet = false;
|
||||
/* Defcon modes mlocked on */
|
||||
Flags<ChannelModeName> DefConModesOn;
|
||||
Flags<ChannelModeName, CMODE_END * 2> DefConModesOn;
|
||||
/* Defcon modes mlocked off */
|
||||
Flags<ChannelModeName> DefConModesOff;
|
||||
Flags<ChannelModeName, CMODE_END * 2> DefConModesOff;
|
||||
/* Map of Modesa and Params for DefCon */
|
||||
std::map<ChannelModeName, Anope::string> DefConModesOnParams;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user