X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_chanlog.cpp;h=2a4535fa52eddbe3ac1957cf067db55accd0596d;hb=ccd95e668a3bcbd26c4cd2984cdd8809347f9815;hp=68a34998132d06f9ede373f34eb91278983a04e7;hpb=4507fa2302b7dd0a8f6f0a43d9b46f6c21bf3345;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_chanlog.cpp b/src/modules/m_chanlog.cpp index 68a349981..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::spacesepstream css(type); - std::string tok; - while (css.GetToken(tok)) - { - ServerInstance->Logs->AddLogType(tok, c, true); - } + ServerInstance->Logs->AddLogTypes(type, c, true); cls.push_back(c); } }