]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_filter_pcre.cpp
Giving printf formats and not giving it arguments for them != cunning
[user/henk/code/inspircd.git] / src / modules / extra / m_filter_pcre.cpp
index fe3d721d45b2244dd628231d2643a0837b15aa11..ade243fb4fd6cb217ea7b11a42740fe57553f4e3 100644 (file)
@@ -28,10 +28,10 @@ using namespace std;
 #include "modules.h"
 #include "helperfuncs.h"
 
-class FilterPCREException
+class FilterPCREException : public ModuleException
 {
  public:
-       virtual char* GetReason()
+       virtual const char* GetReason()
        {
                return "Could not find <filter file=\"\"> definition in your config file!";
        }
@@ -152,7 +152,7 @@ class ModuleFilterPCRE : public Module
                return 0;
        }
        
-       virtual void OnRehash(std::string parameter)
+       virtual void OnRehash(const std::string &parameter)
        {
                // reload our config file on rehash - we must destroy and re-allocate the classes
                // to call the constructor again and re-read our data.