X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_sha1.cpp;h=69af2eba611ddf2f210fec1d93305ef1ae0f6ea2;hb=b4a174ee9c32d62ea6bf010e837e8c5b1c3d36a3;hp=5926e492641356c0160cbeeae6fb0574bfb50320;hpb=5267fb9d362aeb326c9e64f7171c957f76776f90;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_sha1.cpp b/src/modules/m_sha1.cpp index 5926e4926..69af2eba6 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 @@ -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(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); } };