]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Improve the header messages of the filter and permchannels modules.
authorSadie Powell <sadie@witchery.services>
Sun, 21 Mar 2021 01:25:33 +0000 (01:25 +0000)
committerSadie Powell <sadie@witchery.services>
Sun, 21 Mar 2021 01:25:33 +0000 (01:25 +0000)
src/modules/m_filter.cpp
src/modules/m_permchannels.cpp

index 566b4691279cfa9f68a3cebc19deca7736556ff7..aea68e4cfa42681aad59db783c51d924ac1cf7d8 100644 (file)
@@ -962,7 +962,9 @@ bool ModuleFilter::Tick(time_t)
                        return true;
                }
 
-               stream << "# This file is automatically generated by the filter module. Any changes will be overwritten." << std::endl
+               stream
+                       << "# This file was automatically generated by the " << INSPIRCD_VERSION << " filter module on " << InspIRCd::TimeString(ServerInstance->Time()) << "." << std::endl
+                       << "# Any changes to this file will be automatically overwritten." << std::endl
                        << "# If you want to convert this to a normal config file you *MUST* remove the generated=\"yes\" keys!" << std::endl
                        << std::endl
                        << "<config format=\"xml\">" << std::endl;
index fdc75ec34fd4c3fdd5073f43841e2c5ab6729dad..0651f5cdc73634e6199ca646f022d06a0c54246a 100644 (file)
@@ -77,7 +77,10 @@ static bool WriteDatabase(PermChannel& permchanmode, Module* mod, bool save_list
                return false;
        }
 
-       stream << "# This file is automatically generated by m_permchannels. Any changes will be overwritten." << std::endl
+       stream
+               << "# This file was automatically generated by the " << INSPIRCD_VERSION << " permchannels module on " << InspIRCd::TimeString(ServerInstance->Time()) << "." << std::endl
+               << "# Any changes to this file will be automatically overwritten." << std::endl
+               << std::endl
                << "<config format=\"xml\">" << std::endl;
 
        const chan_hash& chans = ServerInstance->GetChans();