From 1cdffcaad7e62f84ca1ee85e8c4265d2701afd08 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 9 Feb 2020 16:01:52 +0000 Subject: Move FindUUID to the UserManager class. --- include/inspircd.h | 6 ------ include/usermanager.h | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'include') 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); }; -- cgit v1.3.1-10-gc9f91