From 8aa7f73bd76d5faacbfef59b308de7314d926fbf Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 12 Jan 2006 20:14:43 +0000 Subject: Changed channel user lists from vector to map git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2780 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/channels.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/channels.h b/include/channels.h index dac671376..9e4bf7b24 100644 --- a/include/channels.h +++ b/include/channels.h @@ -14,14 +14,15 @@ * --------------------------------------------------- */ +#ifndef __CHANNELS_H__ +#define __CHANNELS_H__ + #include "inspircd_config.h" #include "base.h" #include #include #include - -#ifndef __CHANNELS_H__ -#define __CHANNELS_H__ +#include #define CM_TOPICLOCK 1 #define CM_NOEXTERNAL 2 @@ -114,7 +115,7 @@ class chanrec : public Extensible /** User list (casted to char*'s to stop forward declaration stuff) * (chicken and egg scenario!) */ - std::vector internal_userlist; + std::map internal_userlist; /** Channel topic. * If this is an empty string, no channel topic is set. @@ -217,7 +218,7 @@ class chanrec : public Extensible * * @return This function returns a vector of userrec pointers, each of which has been casted to char* to prevent circular references */ - std::vector *GetUsers(); + std::map *GetUsers(); /** Creates a channel record and initialises it with default values */ -- cgit v1.2.3