diff options
| author | 2020-02-09 16:01:52 +0000 | |
|---|---|---|
| committer | 2020-02-09 17:16:07 +0000 | |
| commit | 1cdffcaad7e62f84ca1ee85e8c4265d2701afd08 (patch) | |
| tree | 48a13b1c4d65ca2c76852680a7dcba4db2696c65 /include | |
| parent | Use C++11 inline initialisation for class members. (diff) | |
Move FindUUID to the UserManager class.
Diffstat (limited to 'include')
| -rw-r--r-- | include/inspircd.h | 6 | ||||
| -rw-r--r-- | include/usermanager.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index 6bd14c0e9..4d1a768a7 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -214,12 +214,6 @@ class CoreExport InspIRCd */ FakeUser* FakeClient = nullptr; - /** Find a user in the UUID hash - * @param uid The UUID to find - * @return A pointer to the user, or NULL if the user does not exist - */ - User* FindUUID(const std::string &uid); - /** Time this ircd was booted */ time_t startup_time; diff --git a/include/usermanager.h b/include/usermanager.h index bc1c6fe3b..3c840d2b2 100644 --- a/include/usermanager.h +++ b/include/usermanager.h @@ -191,4 +191,10 @@ class CoreExport UserManager * @return Next already_sent id */ already_sent_t NextAlreadySentId(); + + /** Find a user by their UUID. + * @param uuid The UUID of the user to find. + * @return If the user was found then a pointer to a User object; otherwise, nullptr. + */ + User* FindUUID(const std::string& uuid); }; |
