diff options
| author | 2020-04-09 18:57:50 +0100 | |
|---|---|---|
| committer | 2020-04-11 13:54:05 +0100 | |
| commit | 1a800f7b3db23cdef7e167cd25c0f3b2a64a8e46 (patch) | |
| tree | f302e819c6707d578c2011544069a21640fab735 /src/modules/m_showfile.cpp | |
| parent | Default <sslprofile:hash> to sha256 for GnuTLS and OpenSSL. (diff) | |
Improve storage of module description, flags, and link data.
Diffstat (limited to 'src/modules/m_showfile.cpp')
| -rw-r--r-- | src/modules/m_showfile.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
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<CommandShowFile*> cmds; void ReadTag(ConfigTag* tag, std::vector<CommandShowFile*>& 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<CommandShowFile*> 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) |
