From 1cbf29e3cd070c12437a657b47fc433008b2c74d Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 9 Aug 2006 16:35:24 +0000 Subject: Move clientlist and chanlist into InspIRCd* git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4818 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/inspircd.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'include') 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 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 -- cgit v1.2.3