]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sha256.cpp
Add sanity checks to the ssl modules so that theres no possibility of an out of range...
[user/henk/code/inspircd.git] / src / modules / m_sha256.cpp
index 547e7655cd24359a57b8e8879f48750c7fa24622..1be4551c80c93860581e47479743e62a848e5bcf 100644 (file)
@@ -54,9 +54,6 @@
 #ifdef HAS_STDINT
 #include <stdint.h>
 #endif
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
 #include "m_hash.h"
 
 #ifndef HAS_STDINT
@@ -244,12 +241,12 @@ class ModuleSHA256 : public Module
 
        ModuleSHA256(InspIRCd* Me) : Module(Me), key(NULL), chars(NULL)
        {
-               ServerInstance->PublishInterface("HashRequest", this);
+               ServerInstance->Modules->PublishInterface("HashRequest", this);
        }
 
        virtual ~ModuleSHA256()
        {
-               ServerInstance->UnpublishInterface("HashRequest", this);
+               ServerInstance->Modules->UnpublishInterface("HashRequest", this);
        }
 
        void Implements(char *List)
@@ -293,4 +290,3 @@ class ModuleSHA256 : public Module
 };
 
 MODULE_INIT(ModuleSHA256)
-