]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_opermotd.cpp
Add a shun option to only apply when users are fully connected.
[user/henk/code/inspircd.git] / src / modules / m_opermotd.cpp
index 36998a4b39fa48605db2227fc1b183d97bd139d0..2a725655b1826bdac817e866e2a59966d7454a85 100644 (file)
@@ -97,7 +97,7 @@ class ModuleOpermotd : public Module
 
        Version GetVersion() CXX11_OVERRIDE
        {
-               return Version("Shows a message to opers after oper-up and adds the OPERMOTD command", VF_VENDOR | VF_OPTCOMMON);
+               return Version("Adds the /OPERMOTD command which adds a special message of the day for server operators.", VF_VENDOR | VF_OPTCOMMON);
        }
 
        void OnOper(User* user, const std::string &opertype) CXX11_OVERRIDE
@@ -114,7 +114,7 @@ class ModuleOpermotd : public Module
 
                try
                {
-                       FileReader reader(conf->getString("file", "opermotd"));
+                       FileReader reader(conf->getString("file", "opermotd", 1));
                        cmd.opermotd = reader.GetVector();
                        InspIRCd::ProcessColors(cmd.opermotd);
                }