From ee57f5719301c3883afcffe5970746f378960917 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 15 May 2010 00:56:52 -0400 Subject: Store modes in users and channels using the Flags class, cleaner --- include/channels.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/channels.h') 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 std::map Params; /* Modes set on the channel */ - std::bitset<128> modes; + Flags modes; public: /** Default constructor @@ -136,7 +136,7 @@ class CoreExport Channel : public Extensible, public Flags /** 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 -- cgit