summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 573d1b14d..de745d325 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -346,7 +346,7 @@ userrec::userrec(InspIRCd* Instance, const std::string &uid) : ServerInstance(In
/* Invalidate cache */
operquit = cached_fullhost = cached_hostip = cached_makehost = cached_fullrealhost = NULL;
- if (!uid.empty())
+ if (uid.empty())
strlcpy(uuid, Instance->GetUID().c_str(), UUID_LENGTH);
else
strlcpy(uuid, uid.c_str(), UUID_LENGTH);