]> 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 74dad83158863b2ce0d55d34b348c5bf5789b30d..92579cdaf875fbe24339b42be8f85fdf75df02a6 100644 (file)
@@ -44,10 +44,10 @@ using namespace std;
 #include "users.h"
 #include "channels.h"
 #include "modules.h"
-#include "helperfuncs.h"
+
 #include "inspircd.h"
 
-static Server *Srv;
+
 
 #define SHA256_DIGEST_SIZE (256 / 8)
 #define SHA256_BLOCK_SIZE  (512 / 8)
@@ -228,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>";
@@ -250,8 +250,8 @@ public:
        ModuleOperSHA256(InspIRCd* Me) : Module::Module(Me)
        {
                
-               mksha256cmd = new cmd_mksha256();
-               Srv->AddCommand(mksha256cmd);
+               mksha256cmd = new cmd_mksha256(ServerInstance);
+               ServerInstance->AddCommand(mksha256cmd);
        }
 
        virtual ~ModuleOperSHA256()