]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspircd.cpp
Replace OnAccessCheck with OnPreMode to remove a number of redundant checks
[user/henk/code/inspircd.git] / src / inspircd.cpp
index 94dd41da0a0c21a5094d9c020f44cdfa0699eaf7..3d80f5250e7fd54b7296c486eb943e91bdb97c16 100644 (file)
@@ -126,8 +126,6 @@ void InspIRCd::Cleanup()
                        this->Modules->Unload(k->c_str());
                }
        }
-       /* Remove core commands */
-       Parser->RemoveRFCCommands();
 
        /* Cleanup Server Names */
        for(servernamelist::iterator itr = servernames.begin(); itr != servernames.end(); ++itr)
@@ -352,6 +350,10 @@ InspIRCd::InspIRCd(int argc, char** argv) :
        // Avoid erroneous frees on early exit
        WindowsIPC = 0;
 #endif
+
+       Extensible::Register(&User::NICKForced);
+       Extensible::Register(&User::OperQuit);
+
        FailedPortList pl;
        int do_version = 0, do_nofork = 0, do_debug = 0,
            do_nolog = 0, do_root = 0, do_testsuite = 0;    /* flag variables */
@@ -571,9 +573,6 @@ InspIRCd::InspIRCd(int argc, char** argv) :
        this->Config->Apply(NULL, "");
        Logs->OpenFileLogs();
 
-       /** Note: This is safe, the method checks for user == NULL */
-       this->Parser->SetupCommandTable();
-
        this->Res = new DNS(this);
 
        this->AddServerName(Config->ServerName);