summaryrefslogtreecommitdiff
path: root/modules/commands/hs_request.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/hs_request.cpp')
-rw-r--r--modules/commands/hs_request.cpp9
1 files changed, 7 insertions, 2 deletions
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<HostRequest>
+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");