]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_ojoin.cpp
Fix a couple of issues
[user/henk/code/inspircd.git] / src / modules / m_ojoin.cpp
index 042b2aaba5161c9bde297094cc8ee95e8b2c2d06..b0c206ab312731dc8d5d724da81f51dfb0e069ec 100644 (file)
@@ -69,7 +69,7 @@ class CommandOjoin : public SplitCommand
                        // they're already in the channel
                        std::vector<std::string> 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