diff options
| author | 2014-01-06 13:37:06 +0100 | |
|---|---|---|
| committer | 2014-01-06 13:37:06 +0100 | |
| commit | ade1500382366b0cf24147370aea0a3e5bbe50bf (patch) | |
| tree | 699fe35aaaa3645a8ac0219bce3a44dba1b50ba6 /src/modules/m_operprefix.cpp | |
| parent | Unset all extensions and the topic when lowering TS on a channel (diff) | |
| download | inspircd++-ade1500382366b0cf24147370aea0a3e5bbe50bf.tar.gz inspircd++-ade1500382366b0cf24147370aea0a3e5bbe50bf.tar.bz2 inspircd++-ade1500382366b0cf24147370aea0a3e5bbe50bf.zip | |
Automatically register and unregister mode watchers
Diffstat (limited to 'src/modules/m_operprefix.cpp')
| -rw-r--r-- | src/modules/m_operprefix.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/modules/m_operprefix.cpp b/src/modules/m_operprefix.cpp index 3d2a34bdb..c84e74892 100644 --- a/src/modules/m_operprefix.cpp +++ b/src/modules/m_operprefix.cpp @@ -59,16 +59,10 @@ class ModuleOperPrefixMode : public Module : opm(this), hideoperwatcher(this) , hideopermode(this, "hideoper") { - } - - void init() CXX11_OVERRIDE - { /* To give clients a chance to learn about the new prefix we don't give +y to opers * right now. That means if the module was loaded after opers have joined channels * they need to rejoin them in order to get the oper prefix. */ - - ServerInstance->Modes->AddModeWatcher(&hideoperwatcher); } ModResult OnUserPreJoin(LocalUser* user, Channel* chan, const std::string& cname, std::string& privs, const std::string& keygiven) CXX11_OVERRIDE @@ -98,12 +92,6 @@ class ModuleOperPrefixMode : public Module SetOperPrefix(user, true); } - - ~ModuleOperPrefixMode() - { - ServerInstance->Modes->DelModeWatcher(&hideoperwatcher); - } - Version GetVersion() CXX11_OVERRIDE { return Version("Gives opers cmode +y which provides a staff prefix.", VF_VENDOR); |
