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_showfile.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/modules/m_showfile.cpp') diff --git a/src/modules/m_showfile.cpp b/src/modules/m_showfile.cpp index 43782d2e2..185a1b794 100644 --- a/src/modules/m_showfile.cpp +++ b/src/modules/m_showfile.cpp @@ -100,6 +100,7 @@ class CommandShowFile : public Command class ModuleShowFile : public Module { + private: std::vector cmds; void ReadTag(ConfigTag* tag, std::vector& newcmds) @@ -140,6 +141,11 @@ class ModuleShowFile : public Module } public: + ModuleShowFile() + : Module(VF_VENDOR, "Provides support for showing text files to users") + { + } + void ReadConfig(ConfigStatus& status) override { std::vector newcmds; @@ -171,11 +177,6 @@ class ModuleShowFile : public Module { stdalgo::delete_all(cmds); } - - Version GetVersion() override - { - return Version("Provides support for showing text files to users", VF_VENDOR); - } }; MODULE_INIT(ModuleShowFile) -- cgit v1.3.1-10-gc9f91