]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_password_hash.cpp
Fix for bug #513
[user/henk/code/inspircd.git] / src / modules / m_password_hash.cpp
index baf73e113ac023b0ece39aa00af035f4313d48fb..68ed39c4d5e844354bcfbda183c331aaa610e4c1 100644 (file)
@@ -28,7 +28,7 @@ class CommandMkpasswd : public Command
        std::deque<std::string> &names;
  public:
        CommandMkpasswd (InspIRCd* Instance, Module* S, hashymodules &h, std::deque<std::string> &n)
-               : Command(Instance,"MKPASSWD", 'o', 2), Sender(S), hashers(h), names(n)
+               : Command(Instance,"MKPASSWD", "o", 2), Sender(S), hashers(h), names(n)
        {
                this->source = "m_password_hash.so";
                syntax = "<hashtype> <any-text>";
@@ -52,7 +52,7 @@ class CommandMkpasswd : public Command
                }
        }
 
-       CmdResult Handle (const char** parameters, int pcnt, User *user)
+       CmdResult Handle (const char* const* parameters, int pcnt, User *user)
        {
                MakeHash(user, parameters[0], parameters[1]);
                /* NOTE: Don't propagate this across the network!
@@ -120,10 +120,10 @@ class ModuleOperHash : public Module
        {
                if (ServerInstance->Modules->ModuleHasInterface(mod, "HashRequest"))
                {
-                       ServerInstance->Log(DEBUG, "Post-load registering hasher: %s", name.c_str());
-                       std::string name = HashNameRequest(this, mod).Send();
-                       hashers[name.c_str()] = mod;
-                       names.push_back(name);
+                       ServerInstance->Logs->Log("m_password-hash",DEBUG, "Post-load registering hasher: %s", name.c_str());
+                       std::string sname = HashNameRequest(this, mod).Send();
+                       hashers[sname.c_str()] = mod;
+                       names.push_back(sname);
                        if (!diduseiface)
                        {
                                ServerInstance->Modules->UseInterface("HashRequest");
@@ -155,7 +155,7 @@ class ModuleOperHash : public Module
 
        virtual Version GetVersion()
        {
-               return Version(1,1,0,1,VF_VENDOR,API_VERSION);
+               return Version(1,2,0,1,VF_VENDOR,API_VERSION);
        }
 };