]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_randquote.cpp
Remove an extern, partly because it's unused, partly because it then gets shadowed...
[user/henk/code/inspircd.git] / src / modules / m_randquote.cpp
index 6fca3c5b019d9c48add5dcfa9cc0e269e1d0af16..a3b4c4a7e4d6a5e34668bbe3a7600ba2631cf849 100644 (file)
@@ -24,8 +24,8 @@ using namespace std;
 #include "modules.h"
 #include "helperfuncs.h"
 
-Server *Srv;
-FileReader *quotes = NULL;
+static Server *Srv;
+static FileReader *quotes = NULL;
 
 std::string q_file = "";
 std::string prefix = "";
@@ -69,7 +69,7 @@ class RandquoteException : public ModuleException
  public:
        RandquoteException(std::string message) : err(message) { }
 
-       virtual char* GetReason()
+       virtual const char* GetReason()
        {
                return (char*)err.c_str();
        }
@@ -99,7 +99,7 @@ class ModuleRandQuote : public Module
                {
                        RandquoteException e("m_randquote: Quotefile not specified - Please check your config.");
                        throw(e);
-                }
+               }
 
                quotes = new FileReader(q_file);
                if(!quotes->Exists())