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/ns_ajoin.cpp | |
| parent | 97b9055f92f21cd91af44a3d5dacce0024536cff (diff) | |
Windows
Diffstat (limited to 'modules/commands/ns_ajoin.cpp')
| -rw-r--r-- | modules/commands/ns_ajoin.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/commands/ns_ajoin.cpp b/modules/commands/ns_ajoin.cpp index d7bde685e..5e2a99aa0 100644 --- a/modules/commands/ns_ajoin.cpp +++ b/modules/commands/ns_ajoin.cpp @@ -13,11 +13,11 @@ #include "module.h" -struct AJoinList : std::vector<std::pair<Anope::string, Anope::string> >, ExtensibleItem, Serializable<AJoinList> +struct AJoinList : std::vector<std::pair<Anope::string, Anope::string> >, ExtensibleItem, Serializable { NickCore *nc; - AJoinList(NickCore *n) : nc(n) { } + AJoinList(NickCore *n) : Serializable("AJoinList"), nc(n) { } serialized_data serialize() { @@ -159,18 +159,17 @@ class CommandNSAJoin : public Command class NSAJoin : public Module { + SerializeType ajoinlist_type; CommandNSAJoin commandnsajoin; public: NSAJoin(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, CORE), - commandnsajoin(this) + ajoinlist_type("AJoinList", AJoinList::unserialize), commandnsajoin(this) { this->SetAuthor("Anope"); Implementation i[] = { I_OnNickIdentify }; ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation)); - - Serializable<AJoinList>::Alloc.Register("AJoinList"); } void OnNickIdentify(User *u) |
