diff options
Diffstat (limited to 'include/inspircd.h')
-rw-r--r-- | include/inspircd.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index 38ec9cf43..06fdd7124 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -29,6 +29,7 @@ #include <string> #include <sstream> #include "inspircd_config.h" +#include "uid.h" #include "users.h" #include "channels.h" #include "socket.h" @@ -254,6 +255,10 @@ class XLineManager; class CoreExport InspIRCd : public classbase { private: + /** Holds the current UID. Used to generate the next one. + */ + char current_uid[UUID_LENGTH]; + /** Holds a string describing the last module error to occur */ char MODERR[MAXBUF]; @@ -390,6 +395,10 @@ class CoreExport InspIRCd : public classbase */ std::map<InspSocket*,InspSocket*> SocketCull; + /** Returns the next available UID for this server. + */ + std::string GetUID(); + /** Build the ISUPPORT string by triggering all modules On005Numeric events */ void BuildISupport(); |