summaryrefslogtreecommitdiff
path: root/include/users.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-12-28 10:37:54 -0500
committerAdam <Adam@anope.org>2012-12-28 10:43:30 -0500
commitb591e8cdc8b1bc40a6a59b54dcb6266d9656b616 (patch)
tree2a31259930d9915d9248a29dc5b97006620675a2 /include/users.h
parent379b2ccf92b6124f2026a5ec683cfc98f08e223a (diff)
Use the same object for chanusercontainer and userchancontainer
Diffstat (limited to 'include/users.h')
-rw-r--r--include/users.h17
1 files changed, 3 insertions, 14 deletions
diff --git a/include/users.h b/include/users.h
index ab7edeee3..87a18ed3f 100644
--- a/include/users.h
+++ b/include/users.h
@@ -29,18 +29,6 @@ extern CoreExport int OperCount;
extern CoreExport unsigned MaxUserCount;
extern CoreExport time_t MaxUserTime;
-/* One per channel per user. Channel and status */
-struct ChannelContainer
-{
- Channel *chan;
- ChannelStatus *status;
-
- ChannelContainer(Channel *c) : chan(c) { }
- virtual ~ChannelContainer() { }
-};
-
-typedef std::list<ChannelContainer *> UChannelList;
-
/* Online user and channel data. */
class CoreExport User : public virtual Base, public Extensible, public CommandReply
{
@@ -89,7 +77,8 @@ class CoreExport User : public virtual Base, public Extensible, public CommandRe
bool super_admin;
/* Channels the user is in */
- UChannelList chans;
+ typedef std::list<ChanUserContainer *> ChanUserList;
+ ChanUserList chans;
/* Last time this user sent a memo command used */
time_t lastmemosend;
@@ -319,7 +308,7 @@ class CoreExport User : public virtual Base, public Extensible, public CommandRe
* @param c The channel
* @return The channel container, or NULL
*/
- ChannelContainer *FindChannel(const Channel *c) const;
+ ChanUserContainer *FindChannel(const Channel *c) const;
/** Check if the user is protected from kicks and negative mode changes
* @return true or false