diff options
| author | 2019-02-05 00:47:30 +0000 | |
|---|---|---|
| committer | 2019-02-05 00:47:30 +0000 | |
| commit | bfa5fb407e13ad4adb5c062021de50ecd760ed95 (patch) | |
| tree | c573269b1a94fd7e7da27c1b90b05fa60916de23 /src/modules/m_muteban.cpp | |
| parent | Remove support for the deprecated <power> config tag. (diff) | |
| parent | ModuleManager: use std::flush instead of fflush(stdout). (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_muteban.cpp')
| -rw-r--r-- | src/modules/m_muteban.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/modules/m_muteban.cpp b/src/modules/m_muteban.cpp index 97104f0c5..06b55d2cb 100644 --- a/src/modules/m_muteban.cpp +++ b/src/modules/m_muteban.cpp @@ -22,7 +22,16 @@ class ModuleQuietBan : public Module { + private: + bool notifyuser; + public: + void ReadConfig(ConfigStatus& status) override + { + ConfigTag* tag = ServerInstance->Config->ConfValue("muteban"); + notifyuser = tag->getBool("notifyuser", true); + } + Version GetVersion() override { return Version("Implements extban +b m: - mute bans",VF_OPTCOMMON|VF_VENDOR); @@ -36,7 +45,6 @@ class ModuleQuietBan : public Module Channel* chan = target.Get<Channel>(); if (chan->GetExtBanStatus(user, 'm') == MOD_RES_DENY && chan->GetPrefixValue(user) < VOICE_VALUE) { - bool notifyuser = ServerInstance->Config->ConfValue("muteban")->getBool("notifyuser", true); if (!notifyuser) { details.echo_original = true; |
