]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Add a progress meter for loading of core commands, fix broken implementation for...
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 16 May 2007 21:41:48 +0000 (21:41 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 16 May 2007 21:41:48 +0000 (21:41 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7038 e03df62e-2008-0410-955e-edbf42e46eb7

src/command_parse.cpp
src/inspircd.cpp

index ae580c6a72628251373226fee082ccb0596d0b41..7529461d098a2064c7461816f92c3fa6b9e933b7 100644 (file)
@@ -549,6 +549,9 @@ void CommandParser::SetupCommandTable()
 {
        RFCCommands.clear();
 
+       printf("\nLoading core commands");
+       fflush(stdout);
+
        DIR* library = opendir(LIBRARYDIR);
        if (library)
        {
@@ -557,10 +560,13 @@ void CommandParser::SetupCommandTable()
                {
                        if (match(entry->d_name, "cmd_*.so"))
                        {
+                               printf(".");
+                               fflush(stdout);
                                this->LoadCommand(entry->d_name);
                        }
                }
                closedir(library);
+               printf("\n");
        }
 
        this->CreateCommand(new cmd_reload(ServerInstance));
index 8ae91209f418d1fad8077fc9761ae568a085f892..069c8634d0c86ee8de854e916aac5326ccedac91 100644 (file)
@@ -419,7 +419,6 @@ InspIRCd::InspIRCd(int argc, char** argv)
        this->Modes = new ModeParser(this);
        this->AddServerName(Config->ServerName);
        CheckDie();
-       InitializeDisabledCommands(Config->DisabledCommands, this);
        int bounditems = BindPorts(true, found_ports, pl);
 
        for(int t = 0; t < 255; t++)
@@ -434,6 +433,7 @@ InspIRCd::InspIRCd(int argc, char** argv)
        this->LoadAllModules();
        /* Just in case no modules were loaded - fix for bug #101 */
        this->BuildISupport();
+       InitializeDisabledCommands(Config->DisabledCommands, this);
 
        if ((Config->ports.size() == 0) && (found_ports > 0))
        {