]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Moved LoadAllModules out of constructor, because value of 'this' isnt assigned till...
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 16 Dec 2005 12:18:27 +0000 (12:18 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 16 Dec 2005 12:18:27 +0000 (12:18 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2526 e03df62e-2008-0410-955e-edbf42e46eb7

src/inspircd.cpp

index ddd5c148f27945986bee4aebac596bc455a990a0..e787da5aef70da30d258b7b84a45a0df3d761256 100644 (file)
@@ -209,9 +209,6 @@ InspIRCd::InspIRCd(int argc, char** argv)
         SE = new SocketEngine();
 
         /* We must load the modules AFTER initializing the socket engine, now */
-        LoadAllModules();
-
-        printf("\nInspIRCd is now running!\n");
 
        return;
 }
@@ -395,8 +392,14 @@ int InspIRCd::Run()
        char* target;
        unsigned int numberactive;
         sockaddr_in sock_us;     // our port number
-        socklen_t uslen;         // length of our port number
+       socklen_t uslen;         // length of our port number
+
+       /* Until THIS point, ServerInstance == NULL */
+       
+        LoadAllModules();
 
+        printf("\nInspIRCd is now running!\n");
+       
        if (!Config->nofork)
        {
                freopen("/dev/null","w",stdout);