]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_oper_hash.cpp
PROPAGATE this fix
[user/henk/code/inspircd.git] / src / modules / m_oper_hash.cpp
index f7f0ab65bf148b779910e515637a7ab2028009f0..d8acc3ef96b9e8d4cc001536d1bd706e2ad42fc4 100644 (file)
@@ -15,9 +15,6 @@
 /* $ModDep: m_hash.h */
 
 #include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
 #include "m_hash.h"
 
 typedef std::map<irc::string, Module*> hashymodules;
@@ -58,7 +55,7 @@ class cmd_mkpasswd : public command_t
        CmdResult Handle (const char** parameters, int pcnt, userrec *user)
        {
                MakeHash(user, parameters[0], parameters[1]);
-               /* NOTE: Don't propogate this across the network!
+               /* NOTE: Don't propagate this across the network!
                 * We dont want plaintext passes going all over the place...
                 * To make sure it goes nowhere, return CMD_FAILURE!
                 */
@@ -84,10 +81,10 @@ class ModuleOperHash : public Module
                Conf = NULL;
                OnRehash(NULL,"");
 
-               ServerInstance->UseInterface("HashRequest");
+               ServerInstance->Modules->UseInterface("HashRequest");
 
                /* Find all modules which implement the interface 'HashRequest' */
-               modulelist* ml = ServerInstance->FindInterface("HashRequest");
+               modulelist* ml = ServerInstance->Modules->FindInterface("HashRequest");
 
                /* Did we find any modules? */
                if (ml)
@@ -115,7 +112,7 @@ class ModuleOperHash : public Module
        
        virtual ~ModuleOperHash()
        {
-               ServerInstance->DoneWithInterface("HashRequest");
+               ServerInstance->Modules->DoneWithInterface("HashRequest");
        }
 
        void Implements(char* List)
@@ -160,4 +157,4 @@ class ModuleOperHash : public Module
        }
 };
 
-MODULE_INIT(ModuleOperHash);
+MODULE_INIT(ModuleOperHash)