From 04ece67c3d8534f74a3d75ec77378cb57a9c044e Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 14 Jul 2014 16:10:12 +0200 Subject: Rename UserMembList to Channel::MemberMap, switch all code to use it --- include/channels.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/channels.h b/include/channels.h index 37f0eb431..95c516a05 100644 --- a/include/channels.h +++ b/include/channels.h @@ -36,6 +36,12 @@ */ class CoreExport Channel : public Extensible, public InviteBase { + public: + /** A map of Memberships on a channel keyed by User pointers + */ + typedef std::map MemberMap; + + private: /** Set default modes for the channel on creation */ void SetDefaultModes(); @@ -84,7 +90,7 @@ class CoreExport Channel : public Extensible, public InviteBase /** User list. */ - UserMembList userlist; + MemberMap userlist; /** Channel topic. * If this is an empty string, no channel topic is set. @@ -166,7 +172,7 @@ class CoreExport Channel : public Extensible, public InviteBase * * @return This function returns pointer to a map of User pointers (CUList*). */ - const UserMembList& GetUsers() const { return userlist; } + const MemberMap& GetUsers() const { return userlist; } /** Returns true if the user given is on the given channel. * @param user The user to look for -- cgit v1.2.3