From 98e4ddfb21d285c8b675788c155bb204822fbd4a Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 6 Feb 2020 11:25:42 +0000 Subject: Use C++11 inline initialisation for class members. --- src/modules/m_restrictchans.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/modules/m_restrictchans.cpp') diff --git a/src/modules/m_restrictchans.cpp b/src/modules/m_restrictchans.cpp index ded33cdf4..ba88afa68 100644 --- a/src/modules/m_restrictchans.cpp +++ b/src/modules/m_restrictchans.cpp @@ -31,7 +31,7 @@ typedef insp::flat_set AllowChans; class ModuleRestrictChans : public Module { AllowChans allowchans; - bool allowregistered; + bool allowregistered = false; bool CanCreateChannel(LocalUser* user, const std::string& name) { @@ -52,11 +52,6 @@ class ModuleRestrictChans : public Module } public: - ModuleRestrictChans() - : allowregistered(false) - { - } - void ReadConfig(ConfigStatus& status) override { AllowChans newallows; -- cgit v1.3.1-10-gc9f91