aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_restrictchans.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-02-06 11:25:42 +0000
committerGravatar Sadie Powell2020-02-06 11:25:42 +0000
commit98e4ddfb21d285c8b675788c155bb204822fbd4a (patch)
tree030eb18c989bf3c9e4768a538796e3221ca7934e /src/modules/m_restrictchans.cpp
parentIn 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.cpp7
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;