]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/uid.h
Fix the ctctags module being marked as a draft.
[user/henk/code/inspircd.git] / include / uid.h
index 8be003628393e8aa286f419f77a3c95367b6ea1a..d24a63e94be16320d36885000cf17bffe49c5040 100644 (file)
 
 #pragma once
 
-/**
- * This is the maximum length of a UUID (unique user identifier).
- * This length is set in compliance with TS6 protocol, and really should not be changed. Ever.
- * It allows for a lot of clients as-is. -- w00t.
- */
-#define UUID_LENGTH 10
-
-class TestSuite;
-
 class CoreExport UIDGenerator
 {
-       friend class TestSuite;
-
+ private:
        /** Holds the current UID. Used to generate the next one.
         */
-       char current_uid[UUID_LENGTH];
+       std::string current_uid;
 
        /** Increments the current UID by one.
         */
        void IncrementUID(unsigned int pos);
 
  public:
+       /**
+       * This is the maximum length of a UUID (unique user identifier).
+       * This length is set in compliance with TS6 protocol, and really should not be changed. Ever.
+       * It allows for a lot of clients as-is. -- w00t.
+       */
+       static const unsigned int UUID_LENGTH = 9;
+
        /** Initializes this UID generator with the given SID
         * @param sid SID that conforms to InspIRCd::IsSID()
         */