diff options
| author | Adam <Adam@drink-coca-cola.info> | 2010-05-15 00:56:52 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2010-06-18 21:01:55 -0400 |
| commit | ee57f5719301c3883afcffe5970746f378960917 (patch) | |
| tree | 994ac1f0dbc675e9950050a2332bb17da79d5f02 /include/channels.h | |
| parent | c966d7ec17690037a597e1d8908782de376f3052 (diff) | |
Store modes in users and channels using the Flags class, cleaner
Diffstat (limited to 'include/channels.h')
| -rw-r--r-- | include/channels.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/channels.h b/include/channels.h index 4285a9f21..7814a377a 100644 --- a/include/channels.h +++ b/include/channels.h @@ -62,7 +62,7 @@ class CoreExport Channel : public Extensible, public Flags<ChannelFlags> std::map<ChannelModeName, std::string> Params; /* Modes set on the channel */ - std::bitset<128> modes; + Flags<ChannelModeName> modes; public: /** Default constructor @@ -136,7 +136,7 @@ class CoreExport Channel : public Extensible, public Flags<ChannelFlags> /** See if the channel has any modes at all * @return true or false */ - inline const bool HasModes() const { return modes.count(); } + inline const bool HasModes() const { return modes.FlagCount(); } /** See if a channel has a mode * @param Name The mode name |
