]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sha1.cpp
Fix a bunch of weird indentation and spacing issues.
[user/henk/code/inspircd.git] / src / modules / m_sha1.cpp
index 5926e492641356c0160cbeeae6fb0574bfb50320..69af2eba611ddf2f210fec1d93305ef1ae0f6ea2 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
+ *   Copyright (C) 2017, 2020 Sadie Powell <sadie@witchery.services>
  *   Copyright (C) 2016 Attila Molnar <attilamolnar@hush.com>
  *
  * This file is part of InspIRCd.  InspIRCd is free software: you can
@@ -165,12 +166,12 @@ class SHA1Context
 class SHA1HashProvider : public HashProvider
 {
  public:
-       SHA1HashProvider(Module* mod)
-               : HashProvider(mod, "hash/sha1", 20, 64)
+       SHA1HashProvider(Module* mod)
+               : HashProvider(mod, "sha1", 20, 64)
        {
        }
 
-       std::string GenerateRaw(const std::string& data)
+       std::string GenerateRaw(const std::string& data) CXX11_OVERRIDE
        {
                SHA1Context ctx;
                ctx.Update(reinterpret_cast<const unsigned char*>(data.data()), data.length());
@@ -190,9 +191,9 @@ class ModuleSHA1 : public Module
                big_endian = (htonl(1337) == 1337);
        }
 
-       Version GetVersion()
+       Version GetVersion() CXX11_OVERRIDE
        {
-               return Version("Implements SHA-1 hashing", VF_VENDOR);
+               return Version("Allows other modules to generate SHA-1 hashes.", VF_VENDOR);
        }
 };