]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_sslrehashsignal.cpp
Improve the message sent when a mode does not exist.
[user/henk/code/inspircd.git] / src / modules / extra / m_sslrehashsignal.cpp
index f5b3563b25fd2d7653e28a3e7590a043a0629874..72f85383fe3eee0aa14fc8936d66e0fe9af1349b 100644 (file)
@@ -1,7 +1,8 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
- *   Copyright (C) 2018-2019 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2020 Matt Schatz <genius3000@g3k.solutions>
+ *   Copyright (C) 2018-2020 Sadie Powell <sadie@witchery.services>
  *
  * This file is part of InspIRCd.  InspIRCd is free software: you can
  * redistribute it and/or modify it under the terms of the GNU General Public
@@ -35,7 +36,7 @@ class ModuleSSLRehashSignal : public Module
                signal(SIGUSR1, SIG_IGN);
        }
 
-       void init()
+       void init() CXX11_OVERRIDE
        {
                signal(SIGUSR1, SignalHandler);
        }
@@ -45,18 +46,18 @@ class ModuleSSLRehashSignal : public Module
                if (!signaled)
                        return;
 
-               const std::string feedbackmsg = "Got SIGUSR1, reloading SSL credentials";
+               const std::string feedbackmsg = "Got SIGUSR1, reloading TLS (SSL) credentials";
                ServerInstance->SNO->WriteGlobalSno('a', feedbackmsg);
                ServerInstance->Logs->Log(MODNAME, LOG_DEFAULT, feedbackmsg);
 
-               const std::string str = "ssl";
+               const std::string str = "tls";
                FOREACH_MOD(OnModuleRehash, (NULL, str));
                signaled = 0;
        }
 
        Version GetVersion() CXX11_OVERRIDE
        {
-               return Version("Reloads SSL credentials on SIGUSR1", VF_VENDOR);
+               return Version("Allows the SIGUSR1 signal to be sent to the server to reload TLS (SSL) certificates.", VF_VENDOR);
        }
 };