summaryrefslogtreecommitdiff
path: root/src/nickcore.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-05-17 15:05:13 +0100
committerSadie Powell <sadie@witchery.services>2025-05-17 19:35:03 +0100
commitd3bb930a5e70dbaacfc42128472b84066f42f5db (patch)
tree35ace4c5e57b77211d13e6be7a3ce4565be7f7c1 /src/nickcore.cpp
parent0fc1eb313369a0b50c6a7f246966bec72a63ed69 (diff)
Fix some inconsistencies with account lookups.
Diffstat (limited to 'src/nickcore.cpp')
-rw-r--r--src/nickcore.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nickcore.cpp b/src/nickcore.cpp
index 3f79dbf12..8f81382ad 100644
--- a/src/nickcore.cpp
+++ b/src/nickcore.cpp
@@ -32,8 +32,8 @@ NickCore::NickCore(const Anope::string &coredisplay, uint64_t coreid)
Log(LOG_DEBUG) << "Duplicate account " << this->display << " in NickCore table";
// Upgrading users may not have an account identifier.
- if (this->id && !NickCoreIdList->insert_or_assign(this->id, this).second)
- Log(LOG_DEBUG) << "Duplicate account id " << this->id << " in NickCore table";
+ if (this->uniqueid && !NickCoreIdList->insert_or_assign(this->uniqueid, this).second)
+ Log(LOG_DEBUG) << "Duplicate account id " << this->uniqueid << " in NickCore table";
FOREACH_MOD(OnNickCoreCreate, (this));
}
@@ -55,8 +55,8 @@ NickCore::~NickCore()
this->users.clear();
NickCoreList->erase(this->display);
- if (this->id)
- NickCoreIdList->erase(this->id);
+ if (this->uniqueid)
+ NickCoreIdList->erase(this->uniqueid);
if (!this->memos.memos->empty())
{
@@ -244,9 +244,9 @@ NickCore *NickCore::Find(const Anope::string &nick)
return NULL;
}
-NickCore *NickCore::FindId(uint64_t id)
+NickCore *NickCore::FindId(uint64_t uid)
{
- auto it = NickCoreIdList->find(id);
+ auto it = NickCoreIdList->find(uid);
if (it != NickCoreIdList->end())
{
it->second->QueueUpdate();