diff options
| author | 2020-02-06 11:25:42 +0000 | |
|---|---|---|
| committer | 2020-02-06 11:25:42 +0000 | |
| commit | 98e4ddfb21d285c8b675788c155bb204822fbd4a (patch) | |
| tree | 030eb18c989bf3c9e4768a538796e3221ca7934e /src/modules/m_restrictchans.cpp | |
| parent | In C++11 [io]fstream has std::string constructors; use them. (diff) | |
Use C++11 inline initialisation for class members.
Diffstat (limited to 'src/modules/m_restrictchans.cpp')
| -rw-r--r-- | src/modules/m_restrictchans.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
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<std::string, irc::insensitive_swo> 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; |
