]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sha1.cpp
Show an error when an unprivileged user tries to mass-message.
[user/henk/code/inspircd.git] / src / modules / m_sha1.cpp
index 5926e492641356c0160cbeeae6fb0574bfb50320..b27563db25aebf67c8933fafb3f4f5a193f0c9c6 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
+ *   Copyright (C) 2017 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
@@ -170,7 +171,7 @@ class SHA1HashProvider : public HashProvider
        {
        }
 
-       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);
        }
 };