From 7cfeb971666b3a6709fe61bd01478697e6433f50 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 21 Mar 2021 01:25:33 +0000 Subject: Improve the header messages of the filter and permchannels modules. --- src/modules/m_filter.cpp | 4 +++- src/modules/m_permchannels.cpp | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_filter.cpp b/src/modules/m_filter.cpp index 566b46912..aea68e4cf 100644 --- a/src/modules/m_filter.cpp +++ b/src/modules/m_filter.cpp @@ -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 << "" << std::endl; diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp index fdc75ec34..0651f5cdc 100644 --- a/src/modules/m_permchannels.cpp +++ b/src/modules/m_permchannels.cpp @@ -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 << "" << std::endl; const chan_hash& chans = ServerInstance->GetChans(); -- cgit v1.3.1-10-gc9f91