diff options
| author | 2010-02-09 11:37:44 -0600 | |
|---|---|---|
| committer | 2010-08-03 17:32:34 -0400 | |
| commit | f1c15d73a0805796d6c4a8030f5b155f1ad97077 (patch) | |
| tree | 55b809d05c0512f5fe69d0972ca2b91f5909da1f /src/modules/m_autoop.cpp | |
| parent | Change storage of +b list to match the other listmodes (diff) | |
Module compilation fixups
Diffstat (limited to 'src/modules/m_autoop.cpp')
| -rw-r--r-- | src/modules/m_autoop.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
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 @@ -67,11 +67,14 @@ 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(); |
