1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 07:56:39 +02:00

Fix account identifiers conflicting with SQL row identifiers.

This commit is contained in:
Sadie Powell
2020-10-21 12:12:56 +01:00
parent 95f4e29edd
commit b2b53a1e01
+2 -2
View File
@@ -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);