From ade1500382366b0cf24147370aea0a3e5bbe50bf Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 6 Jan 2014 13:37:06 +0100 Subject: Automatically register and unregister mode watchers --- src/commands/cmd_lusers.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/commands/cmd_lusers.cpp') 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); -- cgit v1.2.3