diff options
| author | Adam <Adam@anope.org> | 2010-08-28 20:56:45 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2010-08-28 20:56:45 -0400 |
| commit | e820e1af0d01011dbe9d91d2971cc3518f7f3d42 (patch) | |
| tree | 9eb52cf891c4cd92ad08ad8d2f7c019780bc6223 /include/operserv.h | |
| parent | 26ba944d55fb4ee92dd5d7a3d2cfa869a8be151f (diff) | |
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.
Diffstat (limited to 'include/operserv.h')
| -rw-r--r-- | include/operserv.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/operserv.h b/include/operserv.h index 679a066a0..2711520cd 100644 --- a/include/operserv.h +++ b/include/operserv.h @@ -12,8 +12,8 @@ extern CoreExport std::vector<NewsItem *> News; extern CoreExport std::vector<std::bitset<32> > DefCon; extern CoreExport bool DefConModesSet; -extern CoreExport Flags<ChannelModeName> DefConModesOn; -extern CoreExport Flags<ChannelModeName> DefConModesOff; +extern CoreExport Flags<ChannelModeName, CMODE_END * 2> DefConModesOn; +extern CoreExport Flags<ChannelModeName, CMODE_END * 2> DefConModesOff; extern CoreExport std::map<ChannelModeName, Anope::string> DefConModesOnParams; class XLineManager; |
