From f1c15d73a0805796d6c4a8030f5b155f1ad97077 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Tue, 9 Feb 2010 11:37:44 -0600 Subject: Module compilation fixups --- src/modules/m_autoop.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/modules/m_autoop.cpp') diff --git a/src/modules/m_autoop.cpp b/src/modules/m_autoop.cpp index b96495bf7..570ae2b32 100644 --- a/src/modules/m_autoop.cpp +++ b/src/modules/m_autoop.cpp @@ -66,12 +66,15 @@ class ModuleAutoOp : public Module public: ModuleAutoOp() : mh(this) + { + } + + void init() { ServerInstance->Modules->AddService(mh); - mh.DoImplements(this); - Implementation list[] = { I_OnUserPreJoin, }; - ServerInstance->Modules->Attach(list, this, 1); + Implementation list[] = { I_OnUserPreJoin, I_OnRehash }; + ServerInstance->Modules->Attach(list, this, 2); } ModResult OnUserPreJoin(User *user, Channel *chan, const char *cname, std::string &privs, const std::string &keygiven) @@ -100,11 +103,6 @@ public: mh.DoCleanup(target_type, item); } - void OnSyncChannel(Channel* chan, Module* proto, void* opaque) - { - mh.DoSyncChannel(chan, proto, opaque); - } - void OnRehash(User* user) { mh.DoRehash(); -- cgit v1.3.1-10-gc9f91