]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sqllog.cpp
PreCommand/PostCommand are local-only hooks
[user/henk/code/inspircd.git] / src / modules / m_sqllog.cpp
index a54f476c479ce6b5425a8f2dcb73a40e5ab73c86..30f0c6b1039c1f1208f9ffbcf1cb8ba67584c62c 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
  * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
@@ -172,11 +172,7 @@ class ModuleSQLLog : public Module
 
                Implementation eventlist[] = { I_OnRehash, I_OnOper, I_OnGlobalOper, I_OnKill,
                        I_OnPreCommand, I_OnUserRegister, I_OnUserQuit, I_OnLoadModule };
-               ServerInstance->Modules->Attach(eventlist, this, 9);
-       }
-
-       virtual ~ModuleSQLLog()
-       {
+               ServerInstance->Modules->Attach(eventlist, this, 8);
        }
 
        void ReadConfig()
@@ -236,7 +232,7 @@ class ModuleSQLLog : public Module
                return MOD_RES_PASSTHRU;
        }
 
-       virtual ModResult OnPreCommand(std::string &command, std::vector<std::string> &parameters, User *user, bool validated, const std::string &original_line)
+       virtual ModResult OnPreCommand(std::string &command, std::vector<std::string> &parameters, LocalUser *user, bool validated, const std::string &original_line)
        {
                if ((command == "GLINE" || command == "KLINE" || command == "ELINE" || command == "ZLINE") && validated)
                {