]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sqlutils.cpp
Make a ./configure --system to support system-wide installation of inspircd
[user/henk/code/inspircd.git] / src / modules / m_sqlutils.cpp
index f63cd3eab539c663f148e4fec17186b292d4ef84..ebb69ca86bcd58b8104d932149a9737e092dce24 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
@@ -33,14 +33,12 @@ private:
 public:
        ModuleSQLutils() : idExt("sqlutils_list", this)
        {
-               ServerInstance->Modules->PublishInterface("SQLutils", this);
                Implementation eventlist[] = { I_OnChannelDelete, I_OnUnloadModule, I_OnUserDisconnect };
                ServerInstance->Modules->Attach(eventlist, this, 3);
        }
 
        ~ModuleSQLutils()
        {
-               ServerInstance->Modules->UnpublishInterface("SQLutils", this);
        }
 
 
@@ -97,7 +95,7 @@ public:
                }
        }
 
-       void OnUserDisconnect(User* user)
+       void OnUserDisconnect(LocalUser* user)
        {
                /* A user is disconnecting, first we need to check if they have a list of queries associated with them.
                 * Then, if they do, we need to erase each of them from our IdUserMap (iduser) so when the module that
@@ -218,7 +216,7 @@ public:
 
        Version GetVersion()
        {
-               return Version("Provides some utilities to SQL client modules, such as mapping queries to users and channels", VF_VENDOR | VF_SERVICEPROVIDER, API_VERSION);
+               return Version("Provides some utilities to SQL client modules, such as mapping queries to users and channels", VF_VENDOR);
        }
 
 };