]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_sqlutils.cpp
Fix.. snomask O is already taken (ffs) so use A instead
[user/henk/code/inspircd.git] / src / modules / extra / m_sqlutils.cpp
index 1a5b5c1c05c186f7689068738045a79934457fff..872b3af8e9fdb34b0821ac014ff5fdde072b1e50 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
@@ -22,7 +22,6 @@
 
 /* $ModDesc: Provides some utilities to SQL client modules, such as mapping queries to users and channels */
 /* $ModDep: m_sqlutils.h */
-/* $CompileFlags: -Wno-variadic-macros */
 
 typedef std::map<unsigned long, User*> IdUserMap;
 typedef std::map<unsigned long, Channel*> IdChanMap;
@@ -39,6 +38,8 @@ public:
        : Module::Module(Me)
        {
                ServerInstance->Modules->PublishInterface("SQLutils", this);
+               Implementation eventlist[] = { I_OnChannelDelete, I_OnUnloadModule, I_OnRequest, I_OnUserDisconnect };
+               ServerInstance->Modules->Attach(eventlist, this, 4);
        }
 
        virtual ~ModuleSQLutils()
@@ -46,10 +47,6 @@ public:
                ServerInstance->Modules->UnpublishInterface("SQLutils", this);
        }       
 
-       void Implements(char* List)
-       {
-               List[I_OnChannelDelete] = List[I_OnUnloadModule] = List[I_OnRequest] =  List[I_OnUserDisconnect] = 1;
-       }
 
        virtual char* OnRequest(Request* request)
        {