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_operjoin.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_operjoin.cpp')
| -rw-r--r-- | src/modules/m_operjoin.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
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<std::string> 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); |
