]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_opersha256.cpp
Speaking of forgetting things, someone forgot to change the name of the function
[user/henk/code/inspircd.git] / src / modules / m_opersha256.cpp
index 289ea6f7de3c86c0fb38115d8f22f0992daed18f..92579cdaf875fbe24339b42be8f85fdf75df02a6 100644 (file)
@@ -44,9 +44,10 @@ using namespace std;
 #include "users.h"
 #include "channels.h"
 #include "modules.h"
-#include "helperfuncs.h"
 
-static Server *Srv;
+#include "inspircd.h"
+
+
 
 #define SHA256_DIGEST_SIZE (256 / 8)
 #define SHA256_BLOCK_SIZE  (512 / 8)
@@ -227,7 +228,7 @@ void SHA256(const char *src, char *dest, int len)
 class cmd_mksha256 : public command_t
 {
 public:
      cmd_mksha256() : command_t("MKSHA256", 'o', 1)
cmd_mksha256 (InspIRCd* Instance) : command_t(Instance,"MKSHA256", 'o', 1)
        {
                this->source = "m_opersha256.so";
                syntax = "<any-text>";
@@ -246,11 +247,11 @@ class ModuleOperSHA256 : public Module
        cmd_mksha256 *mksha256cmd;
 public:
 
-       ModuleOperSHA256(Server *Me) : Module::Module(Me)
+       ModuleOperSHA256(InspIRCd* Me) : Module::Module(Me)
        {
-               Srv = Me;
-               mksha256cmd = new cmd_mksha256();
-               Srv->AddCommand(mksha256cmd);
+               
+               mksha256cmd = new cmd_mksha256(ServerInstance);
+               ServerInstance->AddCommand(mksha256cmd);
        }
 
        virtual ~ModuleOperSHA256()
@@ -294,7 +295,7 @@ public:
        {
        }
 
-       virtual Module *CreateModule(Server* Me)
+       virtual Module *CreateModule(InspIRCd* Me)
        {
                return new ModuleOperSHA256(Me);
        }