From 2eb0505a16cf5b70076bab2de494ef92b7e991d9 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Thu, 3 Jul 2014 12:36:14 +0200 Subject: User::ChangeNick() cannot fail if the new nick is the uuid, document this and rely on it --- include/users.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/users.h') diff --git a/include/users.h b/include/users.h index 4029daa53..6408bc45f 100644 --- a/include/users.h +++ b/include/users.h @@ -588,7 +588,7 @@ class CoreExport User : public Extensible bool ChangeName(const std::string& gecos); /** Change a user's nick - * @param newnick The new nick + * @param newnick The new nick. If equal to the users uuid, the nick change always succeeds. * @return True if the change succeeded */ bool ChangeNick(const std::string& newnick, time_t newts = 0); -- cgit v1.2.3