X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_autoop.cpp;h=32e0971882c012f9a8df32b45ea11f7a34caa8fa;hb=c202dea024542b9c6c6b771bb9a3a081d9eacdc5;hp=85b14ba7ad6dfdfb1dac8782f292635b316911ae;hpb=4ab1c43c1eee708fc50a4808f714a731891b75e8;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_autoop.cpp b/src/modules/m_autoop.cpp index 85b14ba7a..32e097188 100644 --- a/src/modules/m_autoop.cpp +++ b/src/modules/m_autoop.cpp @@ -21,8 +21,6 @@ #include "inspircd.h" #include "listmode.h" -/* $ModDesc: Provides support for the +w channel mode, autoop list */ - /** Handles +w channel mode */ class AutoOpList : public ListModeBase @@ -91,9 +89,6 @@ class ModuleAutoOp : public Module { ServerInstance->Modules->AddService(mh); mh.DoImplements(this); - - Implementation list[] = { I_OnPostJoin, }; - ServerInstance->Modules->Attach(list, this, sizeof(list)/sizeof(Implementation)); } void OnPostJoin(Membership *memb) CXX11_OVERRIDE @@ -123,7 +118,7 @@ class ModuleAutoOp : public Module for(std::string::size_type i = modeline.length(); i > 1; --i) // we use "i > 1" instead of "i" so we skip the + modechange.push_back(memb->user->nick); if(modechange.size() >= 3) - ServerInstance->SendGlobalMode(modechange, ServerInstance->FakeClient); + ServerInstance->Modes->Process(modechange, ServerInstance->FakeClient); } } @@ -132,7 +127,7 @@ class ModuleAutoOp : public Module mh.DoSyncChannel(chan, proto, opaque); } - void OnRehash(User* user) CXX11_OVERRIDE + void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE { mh.DoRehash(); }