]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_safelist.cpp
Fix test client error cheecking on result types
[user/henk/code/inspircd.git] / src / modules / m_safelist.cpp
index c20414340d0807ecd54421ea9fefae36d739885b..148040c6c7e920d390800765367208b93f5d8fd5 100644 (file)
@@ -25,7 +25,7 @@ using namespace std;
  
 extern time_t TIME;
 
-class ListData
+class ListData : public classbase
 {
  public:
        long list_start;
@@ -166,7 +166,7 @@ class ModuleSafeList : public Module
         * OnPreCommand()
         *   Intercept the LIST command.
         */ 
-       virtual int OnPreCommand(const std::string &command, char **parameters, int pcnt, userrec *user, bool validated)
+       virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, userrec *user, bool validated)
        {
                /* If the command doesnt appear to be valid, we dont want to mess with it. */
                if (!validated)
@@ -183,7 +183,7 @@ class ModuleSafeList : public Module
         * HandleList()
         *   Handle (override) the LIST command.
         */
-       int HandleList(char** parameters, int pcnt, userrec* user)
+       int HandleList(const char** parameters, int pcnt, userrec* user)
        {
                /* First, let's check if the user is currently /list'ing */
                ListData *ld;