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_operprefix.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_operprefix.cpp')
| -rw-r--r-- | src/modules/m_operprefix.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/modules/m_operprefix.cpp b/src/modules/m_operprefix.cpp index f56e4d663..1fac1143a 100644 --- a/src/modules/m_operprefix.cpp +++ b/src/modules/m_operprefix.cpp @@ -54,13 +54,16 @@ class HideOperWatcher : public ModeWatcher class ModuleOperPrefixMode : public Module { + private: OperPrefixMode opm; HideOperWatcher hideoperwatcher; UserModeReference hideopermode; public: ModuleOperPrefixMode() - : opm(this), hideoperwatcher(this) + : Module(VF_VENDOR, "Gives opers channel mode +y which provides a staff prefix") + , opm(this) + , hideoperwatcher(this) , hideopermode(this, "hideoper") { /* To give clients a chance to learn about the new prefix we don't give +y to opers @@ -104,11 +107,6 @@ class ModuleOperPrefixMode : public Module SetOperPrefix(user, true); } - Version GetVersion() override - { - return Version("Gives opers channel mode +y which provides a staff prefix", VF_VENDOR); - } - void Prioritize() override { // m_opermodes may set +H on the oper to hide him, we don't want to set the oper prefix in that case |
