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/users.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/users.h')
| -rw-r--r-- | include/users.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/users.h b/include/users.h index e65068f33..596f5ee39 100644 --- a/include/users.h +++ b/include/users.h @@ -17,7 +17,7 @@ typedef unordered_map_namespace::unordered_map<Anope::string, User *, Anope::has extern CoreExport user_map UserListByNick; extern CoreExport user_uid_map UserListByUID; -class ChannelStatus : public Flags<ChannelModeName> +class ChannelStatus : public Flags<ChannelModeName, CMODE_END * 2> { public: Anope::string BuildCharPrefixList() const; @@ -43,7 +43,7 @@ class CoreExport User : public Extensible Anope::string ident; Anope::string uid; bool OnAccess; /* If the user is on the access list of the nick theyre on */ - Flags<UserModeName> modes; /* Bitset of mode names the user has set on them */ + Flags<UserModeName, UMODE_END * 2> modes; /* Bitset of mode names the user has set on them */ std::map<UserModeName, Anope::string> Params; /* Map of user modes and the params this user has */ NickCore *nc; /* NickCore account the user is currently loggged in as */ |
