aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_cloaking.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_cloaking.cpp
parentIn C++11 [io]fstream has std::string constructors; use them. (diff)
downloadinspircd++-98e4ddfb21d285c8b675788c155bb204822fbd4a.tar.gz
inspircd++-98e4ddfb21d285c8b675788c155bb204822fbd4a.tar.bz2
inspircd++-98e4ddfb21d285c8b675788c155bb204822fbd4a.zip
Use C++11 inline initialisation for class members.
Diffstat (limited to 'src/modules/m_cloaking.cpp')
-rw-r--r--src/modules/m_cloaking.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index 0fa7e0983..406ab410b 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -85,18 +85,15 @@ typedef std::vector<std::string> CloakList;
class CloakUser : public ModeHandler
{
public:
- bool active;
+ bool active = false;
SimpleExtItem<CloakList> ext;
std::string debounce_uid;
- time_t debounce_ts;
- int debounce_count;
+ time_t debounce_ts = 0;
+ int debounce_count = 0;
CloakUser(Module* source)
: ModeHandler(source, "cloak", 'x', PARAM_NONE, MODETYPE_USER)
- , active(false)
, ext(source, "cloaked_host", ExtensionItem::EXT_USER)
- , debounce_ts(0)
- , debounce_count(0)
{
}