From d0f802e30c492cb1b7e55f51063bfd38b29931c6 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Mon, 13 May 2019 17:24:25 +0100 Subject: Implement serialisation of users. This allows for various things which will be coming in the future. e.g. Transferring users to another server on upgrade. --- src/users.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index b8a2d31a8..01bad8b61 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -112,6 +112,15 @@ LocalUser::LocalUser(int myfd, irc::sockets::sockaddrs* client, irc::sockets::so ChangeRealHost(GetIPString(), true); } +LocalUser::LocalUser(int myfd, const std::string& uuid, Serializable::Data& data) + : User(uuid, ServerInstance->FakeClient->server, USERTYPE_LOCAL) + , eh(this) + , already_sent(0) +{ + eh.SetFd(myfd); + Deserialize(data); +} + User::~User() { } -- cgit v1.3.1-10-gc9f91