]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_randquote.cpp
Auto loading of commands as shared objects via dlsym (very lightweight interface...
[user/henk/code/inspircd.git] / src / modules / m_randquote.cpp
index c1353ef09a1cae06dc764298ac589e47b0bef57d..0bb0be1db1d539fe800f1ad8f4621c488c044bd5 100644 (file)
@@ -19,7 +19,7 @@ using namespace std;
 #include "users.h"
 #include "channels.h"
 #include "modules.h"
-#include "helperfuncs.h"
+
 #include "inspircd.h"
 
 
@@ -83,7 +83,7 @@ class ModuleRandQuote : public Module
                : Module::Module(Me)
        {
                
-               conf = new ConfigReader;
+               conf = new ConfigReader(ServerInstance);
                // Sort the Randomizer thingie..
                srand(time(NULL));
 
@@ -99,7 +99,7 @@ class ModuleRandQuote : public Module
                        throw(e);
                }
 
-               quotes = new FileReader(q_file);
+               quotes = new FileReader(ServerInstance, q_file);
                if(!quotes->Exists())
                {
                        RandquoteException e("m_randquote: QuoteFile not Found!! Please check your config - module will not function.");