summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-07-14 16:10:12 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-07-14 16:10:12 +0200
commit04ece67c3d8534f74a3d75ec77378cb57a9c044e (patch)
tree41db09412bfd539c977500c93b5ddc2d210be344 /include
parent173bc63cb59bbf19e73d1b823e3e9423c9f79860 (diff)
Rename UserMembList to Channel::MemberMap, switch all code to use it
Diffstat (limited to 'include')
-rw-r--r--include/channels.h10
1 files changed, 8 insertions, 2 deletions
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<Channel>
{
+ public:
+ /** A map of Memberships on a channel keyed by User pointers
+ */
+ typedef std::map<User*, Membership*> MemberMap;
+
+ private:
/** Set default modes for the channel on creation
*/
void SetDefaultModes();
@@ -84,7 +90,7 @@ class CoreExport Channel : public Extensible, public InviteBase<Channel>
/** 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<Channel>
*
* @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