summaryrefslogtreecommitdiff
path: root/modules/commands/cs_xop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/cs_xop.cpp')
-rw-r--r--modules/commands/cs_xop.cpp39
1 files changed, 1 insertions, 38 deletions
diff --git a/modules/commands/cs_xop.cpp b/modules/commands/cs_xop.cpp
index d23b24b81..9279688a6 100644
--- a/modules/commands/cs_xop.cpp
+++ b/modules/commands/cs_xop.cpp
@@ -90,7 +90,7 @@ static struct XOPAccess
}
};
-class XOPChanAccess : public ChanAccess, public Serializable<XOPChanAccess>
+class XOPChanAccess : public ChanAccess
{
public:
XOPType type;
@@ -188,41 +188,6 @@ class XOPChanAccess : public ChanAccess, public Serializable<XOPChanAccess>
return max;
}
}
-
- Anope::string serialize_name() { return "XOPChanAccess"; }
- serialized_data serialize()
- {
- serialized_data data;
-
- data["provider"] << this->provider->name;
- data["ci"] << this->ci->name;
- data["mask"] << this->mask;
- data["creator"] << this->creator;
- data["last_seen"] << this->last_seen;
- data["created"] << this->created;
- data["type"] << this->Serialize();
-
- return data;
- }
-
- static void unserialize(SerializableBase::serialized_data &data)
- {
- service_reference<AccessProvider> aprovider(data["provider"].astr());
- ChannelInfo *ci = cs_findchan(data["ci"].astr());
- if (!aprovider || !ci)
- return;
-
- XOPChanAccess *access = new XOPChanAccess(aprovider);
- access->provider = aprovider;
- access->ci = ci;
- data["mask"] >> access->mask;
- data["creator"] >> access->creator;
- data["last_seen"] >> access->last_seen;
- data["created"] >> access->created;
- access->Unserialize(data["type"].astr());
-
- ci->AddAccess(access);
- }
};
class XOPAccessProvider : public AccessProvider
@@ -902,8 +867,6 @@ class CSXOP : public Module
accessprovider(this), commandcsqop(this), commandcssop(this), commandcsaop(this), commandcshop(this), commandcsvop(this)
{
this->SetAuthor("Anope");
-
- Serializable<XOPChanAccess>::Alloc.Register("XOPChanAccess");
}
};