From 1a800f7b3db23cdef7e167cd25c0f3b2a64a8e46 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 9 Apr 2020 18:57:50 +0100 Subject: Improve storage of module description, flags, and link data. --- src/modules/m_ircv3.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/modules/m_ircv3.cpp') diff --git a/src/modules/m_ircv3.cpp b/src/modules/m_ircv3.cpp index 8405ecdba..231a5e266 100644 --- a/src/modules/m_ircv3.cpp +++ b/src/modules/m_ircv3.cpp @@ -115,14 +115,15 @@ class ModuleIRCv3 , public AccountEventListener , public Away::EventListener { + private: Cap::Capability cap_accountnotify; JoinHook joinhook; - ClientProtocol::EventProvider accountprotoev; public: ModuleIRCv3() - : AccountEventListener(this) + : Module(VF_VENDOR, "Provides support for extended-join, away-notify and account-notify CAP capabilities") + , AccountEventListener(this) , Away::EventListener(this) , cap_accountnotify(this, "account-notify") , joinhook(this) @@ -173,11 +174,6 @@ class ModuleIRCv3 ClientProtocol::Event awayevent(joinhook.awayprotoev, msg); IRCv3::WriteNeighborsWithCap(user, awayevent, joinhook.awaycap); } - - Version GetVersion() override - { - return Version("Provides support for extended-join, away-notify and account-notify CAP capabilities", VF_VENDOR); - } }; MODULE_INIT(ModuleIRCv3) -- cgit v1.3.1-10-gc9f91