]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_ssl_oper_cert.cpp
Fix.. snomask O is already taken (ffs) so use A instead
[user/henk/code/inspircd.git] / src / modules / extra / m_ssl_oper_cert.cpp
index 38dbb8f2027e706c06f3622b237d169a4862552b..074a75713b864ca1f9f016bfde25db1008a6ae0e 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
@@ -82,6 +82,8 @@ class ModuleOperSSLCert : public Module
                mycommand = new cmd_fingerprint(ServerInstance);
                ServerInstance->AddCommand(mycommand);
                cf = new ConfigReader(ServerInstance);
+               Implementation eventlist[] = { I_OnPreCommand, I_OnRehash };
+               ServerInstance->Modules->Attach(eventlist, this, 2);
        }
 
        virtual ~ModuleOperSSLCert()
@@ -89,10 +91,6 @@ class ModuleOperSSLCert : public Module
                delete cf;
        }
 
-       void Implements(char* List)
-       {
-               List[I_OnPreCommand] = List[I_OnRehash] = 1;
-       }
 
        virtual void OnRehash(User* user, const std::string &parameter)
        {