diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-09 17:52:10 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-09 17:52:10 +0000 |
commit | 2591562ada4cb1f866e5d1c98340fb19332b3844 (patch) | |
tree | 1cf18676c1851c39322d20fa208c0221e23ba6ac /include/inspircd.h | |
parent | 1cbf29e3cd070c12437a657b47fc433008b2c74d (diff) |
Move tons more stuff into class InspIRCd
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4819 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/inspircd.h')
-rw-r--r-- | include/inspircd.h | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index 5aacd072d..f901200cd 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -83,6 +83,7 @@ class InspIRCd : public classbase private: char MODERR[MAXBUF]; bool expire_run; + servernamelist servernames; void EraseFactory(int j); void EraseModule(int j); @@ -111,15 +112,31 @@ 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 */ + user_hash clientlist; + chan_hash chanlist; + std::vector<userrec*> local_users; DNS* Res; void AddServerName(const std::string &servername); const char* FindServerNamePtr(const std::string &servername); bool FindServerName(const std::string &servername); + bool UserToPseudo(userrec* user, const std::string &message); + bool PseudoToUser(userrec* alive, userrec* zombie, const std::string &message); + + void ServerNoticeAll(char* text, ...); + void ServerPrivmsgAll(char* text, ...); + void WriteMode(const char* modes, int flags, const char* text, ...); + + int usercnt(); + int registered_usercount(); + int usercount_invisible(); + int usercount_opers(); + int usercount_unknown(); + long chancount(); + long local_count(); + + void SendError(const char *s); std::string GetRevision(); std::string GetVersionString(); |