From b5ff856f47d8e54d12c568462a06351633c29610 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 8 Nov 2011 17:29:16 -0500 Subject: Windows --- modules/commands/hs_request.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'modules/commands/hs_request.cpp') diff --git a/modules/commands/hs_request.cpp b/modules/commands/hs_request.cpp index 82bba1bbc..f7a904979 100644 --- a/modules/commands/hs_request.cpp +++ b/modules/commands/hs_request.cpp @@ -23,13 +23,17 @@ static bool HSRequestMemoOper = false; void req_send_memos(CommandSource &source, const Anope::string &vIdent, const Anope::string &vHost); -struct HostRequest : ExtensibleItem, Serializable +struct HostRequest : ExtensibleItem, Serializable { Anope::string nick; Anope::string ident; Anope::string host; time_t time; + HostRequest() : Serializable("HostRequest") + { + } + serialized_data serialize() { serialized_data data; @@ -326,6 +330,7 @@ class CommandHSWaiting : public HSListBase class HSRequest : public Module { + SerializeType request_type; CommandHSRequest commandhsrequest; CommandHSActivate commandhsactive; CommandHSReject commandhsreject; @@ -333,7 +338,7 @@ class HSRequest : public Module public: HSRequest(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, CORE), - commandhsrequest(this), commandhsactive(this), commandhsreject(this), commandhswaiting(this) + request_type("HSRequest", HostRequest::unserialize), commandhsrequest(this), commandhsactive(this), commandhsreject(this), commandhswaiting(this) { this->SetAuthor("Anope"); -- cgit