]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_safelist.cpp
YAY for LDAP oper blocks! :D
[user/henk/code/inspircd.git] / src / modules / m_safelist.cpp
index 3e739cc742ffa669b30956460095e9ef15aa9a14..ab2839900b57a973669fd41d9335db0390fc8955 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
@@ -64,16 +64,12 @@ class ModuleSafeList : public Module
                return Version(1,1,0,0,VF_VENDOR,API_VERSION);
        }
  
-       void Implements(char* List)
-       {
-               List[I_OnBufferFlushed] = List[I_OnPreCommand] = List[I_OnCleanup] = List[I_OnUserQuit] = List[I_On005Numeric] = List[I_OnRehash] = 1;
-       }
 
        /*
         * OnPreCommand()
         *   Intercept the LIST command.
         */ 
-       virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, User *user, bool validated, const std::string &original_line)
+       virtual int OnPreCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, bool validated, const std::string &original_line)
        {
                /* If the command doesnt appear to be valid, we dont want to mess with it. */
                if (!validated)
@@ -90,7 +86,7 @@ class ModuleSafeList : public Module
         * HandleList()
         *   Handle (override) the LIST command.
         */
-       int HandleList(const char** parameters, int pcnt, User* user)
+       int HandleList(const char* const* parameters, int pcnt, User* user)
        {
                int minusers = 0, maxusers = 0;
 
@@ -118,13 +114,13 @@ class ModuleSafeList : public Module
                        if (*parameters[0] == '<')
                        {
                                maxusers = atoi(parameters[0]+1);
-                               ServerInstance->Log(DEBUG,"Max users: %d", maxusers);
+                               ServerInstance->Logs->Log("m_safelist",DEBUG,"Max users: %d", maxusers);
                                pcnt = 0;
                        }
                        else if (*parameters[0] == '>')
                        {
                                minusers = atoi(parameters[0]+1);
-                               ServerInstance->Log(DEBUG,"Min users: %d", minusers);
+                               ServerInstance->Logs->Log("m_safelist",DEBUG,"Min users: %d", minusers);
                                pcnt = 0;
                        }
                }