X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_chanlog.cpp;h=2a4535fa52eddbe3ac1957cf067db55accd0596d;hb=83137d5f9274832f152acc7d19de3cb0897f9630;hp=7d066a6ac5792e57a89fa7db263b0e7adbc87754;hpb=f995b32ff4a570f3c35521e5d426286dd25c1c89;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_chanlog.cpp b/src/modules/m_chanlog.cpp index 7d066a6ac..2a4535fa5 100644 --- a/src/modules/m_chanlog.cpp +++ b/src/modules/m_chanlog.cpp @@ -94,12 +94,7 @@ class ModuleChanLog : public Module } std::string target = Conf->ReadValue("log", "target", index); ChannelLogStream* c = new ChannelLogStream(ServerInstance, loglevel, target); - irc::commasepstream css(type); - std::string tok; - while (css.GetToken(tok)) - { - ServerInstance->Logs->AddLogType(tok, c); - } + ServerInstance->Logs->AddLogTypes(type, c, true); cls.push_back(c); } }