]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_oper_hash.cpp
Add config <options:disablehmac> to support disabling of HMAC, and tidy up to detect...
[user/henk/code/inspircd.git] / src / modules / m_oper_hash.cpp
index 61a43b1e1bd4b815fa576cf90d5f53fdec221397..8c9ca0556faf3f48c8d985bcf9c1c427cf7aca1e 100644 (file)
@@ -2,12 +2,9 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
- *                       E-mail:
- *                <brain@chatspike.net>
- *               <Craig@chatspike.net>
- *     
- * Written by Craig Edwards, Craig McLure, and others.
+ *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * See: http://www.inspircd.org/wiki/index.php/Credits
+ *
  * This program is free but copyrighted software; see
  *            the file COPYING for details.
  *
@@ -17,8 +14,6 @@
 /* $ModDesc: Allows for hashed oper passwords */
 /* $ModDep: m_hash.h */
 
-using namespace std;
-
 #include "inspircd_config.h"
 #include "users.h"
 #include "channels.h"
@@ -89,7 +84,7 @@ class ModuleOperHash : public Module
 
                /* Read the config file first */
                Conf = NULL;
-               OnRehash("");
+               OnRehash(NULL,"");
 
                ServerInstance->UseInterface("HashRequest");
 
@@ -109,7 +104,6 @@ class ModuleOperHash : public Module
                                /* Build a map of them */
                                hashers[name.c_str()] = *m;
                                names.push_back(name);
-                               ServerInstance->Log(DEBUG, "Found HashRequest interface: '%s' -> '%08x'", name.c_str(), *m);
                        }
                }
                else
@@ -131,7 +125,7 @@ class ModuleOperHash : public Module
                List[I_OnRehash] = List[I_OnOperCompare] = 1;
        }
 
-       virtual void OnRehash(const std::string &parameter)
+       virtual void OnRehash(userrec* user, const std::string &parameter)
        {
                /* Re-read configuration file */
                if (Conf)