X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_chanlog.cpp;h=736285be8ac5c3afecd53400dcf2d0fee1913efd;hb=df4afba6c23c939af1013582c94138832017af4e;hp=a62fbf9b2084381acc8457e6eec22d0fc6b2c4d9;hpb=d24619c012b34d5a3d4cfb93e7bea3ff3d5721e7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_chanlog.cpp b/src/modules/m_chanlog.cpp index a62fbf9b2..736285be8 100644 --- a/src/modules/m_chanlog.cpp +++ b/src/modules/m_chanlog.cpp @@ -29,12 +29,7 @@ class ModuleChanLog : public Module ChanLogTargets logstreams; public: - void init() CXX11_OVERRIDE - { - OnRehash(NULL); - } - - void OnRehash(User *user) CXX11_OVERRIDE + void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE { std::string snomasks; std::string channel; @@ -76,7 +71,7 @@ class ModuleChanLog : public Module if (c) { c->WriteChannelWithServ(ServerInstance->Config->ServerName, "PRIVMSG %s :%s", c->name.c_str(), snotice.c_str()); - ServerInstance->PI->SendChannelPrivmsg(c, 0, snotice); + ServerInstance->PI->SendMessage(c, 0, snotice); } }