diff options
author | Robin Burchell <viroteck@viroteck.net> | 2012-05-28 04:23:29 -0700 |
---|---|---|
committer | Robin Burchell <viroteck@viroteck.net> | 2012-05-28 04:23:29 -0700 |
commit | 20a91b6bc458a9f5c531a93dbe6b8d5083a3fd0d (patch) | |
tree | 301df4396157da0479864bf08f1ec6d48f222b55 /include | |
parent | a441c1b1be087a9974dad211aa3706e1909d6ab3 (diff) | |
parent | e3e7cb89e112bbeed2b3e43798a16fe557a3992a (diff) |
Merge pull request #150 from attilamolnar/insp20+incrementuidfix
[2.0] Fix generating invalid UIDs after current_uid is 000Z99999
Diffstat (limited to 'include')
-rw-r--r-- | include/inspircd.h | 4 | ||||
-rw-r--r-- | include/testsuite.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index cabb24aa0..9c9609530 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -256,6 +256,8 @@ DEFINE_HANDLER1(IsSIDHandler, bool, const std::string&); DEFINE_HANDLER1(RehashHandler, void, const std::string&); DEFINE_HANDLER3(OnCheckExemptionHandler, ModResult, User*, Channel*, const std::string&); +class TestSuite; + /** The main class of the irc server. * This class contains instances of all the other classes in this software. * Amongst other things, it contains a ModeParser, a DNS object, a CommandParser @@ -855,6 +857,8 @@ class CoreExport InspIRCd { return this->ReadBuffer; } + + friend class TestSuite; }; ENTRYPOINT; diff --git a/include/testsuite.h b/include/testsuite.h index 618615dc9..f91e508c9 100644 --- a/include/testsuite.h +++ b/include/testsuite.h @@ -21,6 +21,7 @@ class TestSuite { + bool RealGenerateUIDTests(); public: TestSuite(); ~TestSuite(); @@ -29,6 +30,7 @@ class TestSuite bool DoWildTests(); bool DoCommaSepStreamTests(); bool DoSpaceSepStreamTests(); + bool DoGenerateUIDTests(); }; #endif |