X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmodules%2Fm_permchannels.cpp;h=35736bf711e47670a9bc7a4408727758f5c499a2;hb=c7b938502295ddc5b2c89e0854d8c5c19ede32dc;hp=0f3ac001ddb79e3d78fdae96f42346cf9ca229df;hpb=1bf7ca389426e196697eba9a8b60277db03fbedb;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp index 0f3ac001d..35736bf71 100644 --- a/src/modules/m_permchannels.cpp +++ b/src/modules/m_permchannels.cpp @@ -2,7 +2,7 @@ * InspIRCd -- Internet Relay Chat Daemon * * Copyright (C) 2014 Justin Crawford - * Copyright (C) 2013-2014, 2017-2020 Sadie Powell + * Copyright (C) 2013-2014, 2017-2021 Sadie Powell * Copyright (C) 2013-2014, 2016 Attila Molnar * Copyright (C) 2012, 2019 Robby * Copyright (C) 2012, 2014 Adam @@ -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(); @@ -186,7 +189,7 @@ public: { ConfigTag* tag = ServerInstance->Config->ConfValue("permchanneldb"); permchannelsconf = tag->getString("filename"); - save_listmodes = tag->getBool("listmodes"); + save_listmodes = tag->getBool("listmodes", true); SetInterval(tag->getDuration("saveperiod", 5)); if (!permchannelsconf.empty())