diff options
author | Sadie Powell <sadie@witchery.services> | 2020-10-21 12:12:56 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-10-21 12:20:26 +0100 |
commit | b2b53a1e0157ac199584e91f237ec3e8887fcb10 (patch) | |
tree | 04f4c739c42b726f9d65ca4223cf2858c654b6f3 | |
parent | 95f4e29edda57c2d28c0f58c5a37fa58a0f2140f (diff) |
Fix account identifiers conflicting with SQL row identifiers.
-rw-r--r-- | src/nickcore.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nickcore.cpp b/src/nickcore.cpp index 6b6a00138..4e87b1ea9 100644 --- a/src/nickcore.cpp +++ b/src/nickcore.cpp @@ -74,7 +74,7 @@ NickCore::~NickCore() void NickCore::Serialize(Serialize::Data &data) const { data["display"] << this->display; - data["id"] << this->id; + data["uniqueid"] << this->id; data["pass"] << this->pass; data["email"] << this->email; data["language"] << this->language; @@ -94,7 +94,7 @@ Serializable* NickCore::Unserialize(Serializable *obj, Serialize::Data &data) data["display"] >> sdisplay; uint64_t sid = 0; - data["id"] >> sid; + data["uniqueid"] >> sid; if (obj) nc = anope_dynamic_static_cast<NickCore *>(obj); |