summaryrefslogtreecommitdiff
path: root/include/channels.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-12 20:14:43 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-12 20:14:43 +0000
commit8aa7f73bd76d5faacbfef59b308de7314d926fbf (patch)
tree26e61b6aa53ff4cea5367feb962951c4de330d1d /include/channels.h
parentc4dffdedf72f6a2061e19725e4b50b2d28397085 (diff)
Changed channel user lists from vector to map
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2780 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/channels.h')
-rw-r--r--include/channels.h11
1 files changed, 6 insertions, 5 deletions
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 <time.h>
#include <vector>
#include <string>
-
-#ifndef __CHANNELS_H__
-#define __CHANNELS_H__
+#include <map>
#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<char*> internal_userlist;
+ std::map<char*,char*> 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<char*> *GetUsers();
+ std::map<char*,char*> *GetUsers();
/** Creates a channel record and initialises it with default values
*/