X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_sha1.cpp;h=2d8ce635ce32e055659f0a13818197851be2a17e;hb=1bf7ca389426e196697eba9a8b60277db03fbedb;hp=798539d9177b9a510b3b569169d897ae056f83ec;hpb=d1df2bce56275e1297d94d82d4dbef6f6cf582b6;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_sha1.cpp b/src/modules/m_sha1.cpp index 798539d91..2d8ce635c 100644 --- a/src/modules/m_sha1.cpp +++ b/src/modules/m_sha1.cpp @@ -1,6 +1,7 @@ /* * InspIRCd -- Internet Relay Chat Daemon * + * Copyright (C) 2017, 2020 Sadie Powell * Copyright (C) 2016 Attila Molnar * * This file is part of InspIRCd. InspIRCd is free software: you can @@ -166,11 +167,11 @@ class SHA1HashProvider : public HashProvider { public: SHA1HashProvider(Module* mod) - : HashProvider(mod, "hash/sha1", 20, 64) + : 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(data.data()), data.length()); @@ -192,7 +193,7 @@ class ModuleSHA1 : public Module Version GetVersion() CXX11_OVERRIDE { - return Version("Implements SHA-1 hashing", VF_VENDOR); + return Version("Allows other modules to generate SHA-1 hashes.", VF_VENDOR); } };