diff options
author | Adam <Adam@anope.org> | 2011-11-08 17:29:16 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-11-08 17:29:16 -0500 |
commit | b5ff856f47d8e54d12c568462a06351633c29610 (patch) | |
tree | a4e2f96c59ee49aa5e6cacdfd30db6155151ad36 /modules/commands/os_oper.cpp | |
parent | 97b9055f92f21cd91af44a3d5dacce0024536cff (diff) |
Windows
Diffstat (limited to 'modules/commands/os_oper.cpp')
-rw-r--r-- | modules/commands/os_oper.cpp | 9 |
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() |