summaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-01-06 13:37:06 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-01-06 13:37:06 +0100
commitade1500382366b0cf24147370aea0a3e5bbe50bf (patch)
tree699fe35aaaa3645a8ac0219bce3a44dba1b50ba6 /src/commands
parent5a366d8945e1312190d0012eb36d2facaa908650 (diff)
Automatically register and unregister mode watchers
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/cmd_lusers.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/commands/cmd_lusers.cpp b/src/commands/cmd_lusers.cpp
index 37b193e66..7cd0f2ca1 100644
--- a/src/commands/cmd_lusers.cpp
+++ b/src/commands/cmd_lusers.cpp
@@ -154,11 +154,6 @@ class ModuleLusers : public Module
{
}
- void init()
- {
- ServerInstance->Modes->AddModeWatcher(&mw);
- }
-
void OnPostConnect(User* user)
{
counters.UpdateMaxUsers();
@@ -172,11 +167,6 @@ class ModuleLusers : public Module
counters.invisible--;
}
- ~ModuleLusers()
- {
- ServerInstance->Modes->DelModeWatcher(&mw);
- }
-
Version GetVersion()
{
return Version("LUSERS", VF_VENDOR | VF_CORE);