]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_opermotd.cpp
sslinfo: use the SSL certificate API to get user SSL certificates.
[user/henk/code/inspircd.git] / src / modules / m_opermotd.cpp
index 4635cd831f51981d2060e786a2907ab7f298ec83..afce073a85bd04fa645dc1835732e43aaf420ac7 100644 (file)
@@ -61,20 +61,21 @@ class CommandOpermotd : public Command
 
        void ShowOperMOTD(User* user, bool show_missing)
        {
-               if (opermotd.empty() && show_missing)
+               if (opermotd.empty())
                {
-                       user->WriteRemoteNumeric(ERR_NOOPERMOTD, "OPERMOTD file is missing");
+                       if (show_missing)
+                               user->WriteRemoteNumeric(ERR_NOOPERMOTD, "OPERMOTD file is missing.");
                        return;
                }
 
-               user->WriteRemoteNumeric(RPL_OMOTDSTART, "- IRC Operators Message of the Day");
+               user->WriteRemoteNumeric(RPL_OMOTDSTART, "Server operators message of the day");
 
                for (file_cache::const_iterator i = opermotd.begin(); i != opermotd.end(); ++i)
                {
                        user->WriteRemoteNumeric(RPL_OMOTD, InspIRCd::Format("- %s", i->c_str()));
                }
 
-               user->WriteRemoteNumeric(RPL_ENDOFOMOTD, "End of OPERMOTD");
+               user->WriteRemoteNumeric(RPL_ENDOFOMOTD, "End of OPERMOTD");
        }
 };
 
@@ -92,7 +93,7 @@ class ModuleOpermotd : public Module
 
        Version GetVersion() CXX11_OVERRIDE
        {
-               return Version("Shows a message to opers after oper-up, adds /opermotd", VF_VENDOR | VF_OPTCOMMON);
+               return Version("Shows a message to opers after oper-up and adds the OPERMOTD command", VF_VENDOR | VF_OPTCOMMON);
        }
 
        void OnOper(User* user, const std::string &opertype) CXX11_OVERRIDE