X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmodules%2Fm_permchannels.cpp;h=0651f5cdc73634e6199ca646f022d06a0c54246a;hb=b0f16081ccaef527ed4b5434a7264508cf455f39;hp=a408ff1422344ee23365183a81a98e34047c3410;hpb=6cfabb0064cab52bbbab59974e53dc0fa1954da7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp index a408ff142..0651f5cdc 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-2019 Sadie Powell + * Copyright (C) 2013-2014, 2017-2020 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())