]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_muteban.cpp
Fix a bunch more conflicting/unnamed numerics.
[user/henk/code/inspircd.git] / src / modules / m_muteban.cpp
index 045666f8972ba245b3b9aa75cab7472a946b3acb..aebc004623d7aa0a68314802cfe8ffe57bb3278b 100644 (file)
@@ -36,6 +36,13 @@ 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.echooriginal = true;
+                               return MOD_RES_DENY;
+                       }
+
                        user->WriteNumeric(ERR_CANNOTSENDTOCHAN, chan->name, "Cannot send to channel (you're muted)");
                        return MOD_RES_DENY;
                }