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_operjoin.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/modules/m_operjoin.cpp') diff --git a/src/modules/m_operjoin.cpp b/src/modules/m_operjoin.cpp index c53375e70..7f0360f87 100644 --- a/src/modules/m_operjoin.cpp +++ b/src/modules/m_operjoin.cpp @@ -28,10 +28,16 @@ class ModuleOperjoin : public Module { + private: std::vector operChans; bool override; public: + ModuleOperjoin() + : Module(VF_VENDOR, "Forces opers to join the specified channel(s) on oper-up") + { + } + void ReadConfig(ConfigStatus& status) override { ConfigTag* tag = ServerInstance->Config->ConfValue("operjoin"); @@ -44,11 +50,6 @@ class ModuleOperjoin : public Module operChans.push_back(channame); } - Version GetVersion() override - { - return Version("Forces opers to join the specified channel(s) on oper-up", VF_VENDOR); - } - void OnPostOper(User* user, const std::string &opertype, const std::string &opername) override { LocalUser* localuser = IS_LOCAL(user); -- cgit v1.3.1-10-gc9f91