X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_ojoin.cpp;h=b0c206ab312731dc8d5d724da81f51dfb0e069ec;hb=9962840222b6886f7653fc64443f19ebd661cc63;hp=042b2aaba5161c9bde297094cc8ee95e8b2c2d06;hpb=812c478f8b073a7465b4af4f4117b13db2168f50;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_ojoin.cpp b/src/modules/m_ojoin.cpp index 042b2aaba..b0c206ab3 100644 --- a/src/modules/m_ojoin.cpp +++ b/src/modules/m_ojoin.cpp @@ -69,7 +69,7 @@ class CommandOjoin : public SplitCommand // they're already in the channel std::vector modes; modes.push_back(parameters[0]); - modes.push_back("+" + npmh->GetModeChar()); + modes.push_back(std::string("+") + npmh->GetModeChar()); if (op) { modes[1].push_back('o'); @@ -142,9 +142,6 @@ class ModuleOjoin : public Module ServerInstance->Modules->AddService(*np); ServerInstance->Modules->AddService(mycommand); - - Implementation eventlist[] = { I_OnUserPreJoin, I_OnUserPreKick, I_OnRehash }; - ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); } ModResult OnUserPreJoin(LocalUser* user, Channel* chan, const std::string& cname, std::string& privs, const std::string& keygiven) CXX11_OVERRIDE