summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-09 16:35:24 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-09 16:35:24 +0000
commit1cbf29e3cd070c12437a657b47fc433008b2c74d (patch)
tree22b7a435ffd8bfa7dd97f2457b73df564753eddc /include
parent89749a74402913d50bd5a9140757a383d6ff175e (diff)
Move clientlist and chanlist into InspIRCd*
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4818 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/inspircd.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index a8ef3bf1d..5aacd072d 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -111,8 +111,16 @@ class InspIRCd : public classbase
std::vector<InspSocket*> module_sockets;
InspSocket* socket_ref[MAX_DESCRIPTORS]; /* XXX: This should probably be made private, with inline accessors */
userrec* fd_ref_table[MAX_DESCRIPTORS]; /* XXX: Ditto */
+ user_hash clientlist; /* XXX: Ditto */
+ chan_hash chanlist; /* XXX: Ditto */
+ servernamelist servernames; /* XXX: Ditto */
DNS* Res;
+ void AddServerName(const std::string &servername);
+ const char* FindServerNamePtr(const std::string &servername);
+ bool FindServerName(const std::string &servername);
+
+
std::string GetRevision();
std::string GetVersionString();
void WritePID(const std::string &filename);
@@ -129,9 +137,4 @@ class InspIRCd : public classbase
/* Miscellaneous stuff here, moved from inspircd_io.h */
void Exit(int status);
-/* userrec optimization stuff */
-void AddServerName(const std::string &servername);
-const char* FindServerNamePtr(const std::string &servername);
-bool FindServerName(const std::string &servername);
-
#endif