Skip to content

Commit

Permalink
Fix account identifiers conflicting with SQL row identifiers.
Browse files Browse the repository at this point in the history
  • Loading branch information
SadieCat committed Oct 21, 2020
1 parent 95f4e29 commit b2b53a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nickcore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit b2b53a1

Please sign in to comment.