summaryrefslogtreecommitdiff
path: root/modules/commands/os_oper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/os_oper.cpp')
-rw-r--r--modules/commands/os_oper.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/commands/os_oper.cpp b/modules/commands/os_oper.cpp
index 1d38a0279..18391e4ca 100644
--- a/modules/commands/os_oper.cpp
+++ b/modules/commands/os_oper.cpp
@@ -13,9 +13,9 @@
#include "module.h"
-struct MyOper : Oper, Serializable<MyOper>
+struct MyOper : Oper, Serializable
{
- MyOper(const Anope::string &n, OperType *o) : Oper(n, o) { }
+ MyOper(const Anope::string &n, OperType *o) : Oper(n, o), Serializable("Oper") { }
serialized_data serialize()
{
@@ -196,15 +196,14 @@ class CommandOSOper : public Command
class OSOper : public Module
{
+ SerializeType myoper_type;
CommandOSOper commandosoper;
public:
OSOper(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, CORE),
- commandosoper(this)
+ myoper_type("Oper", MyOper::unserialize), commandosoper(this)
{
this->SetAuthor("Anope");
-
- Serializable<MyOper>::Alloc.Register("Oper");
}
~OSOper()