summaryrefslogtreecommitdiff
path: root/src/modules/m_muteban.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_muteban.cpp')
-rw-r--r--src/modules/m_muteban.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/m_muteban.cpp b/src/modules/m_muteban.cpp
index 045666f89..aebc00462 100644
--- a/src/modules/m_muteban.cpp
+++ b/src/modules/m_muteban.cpp
@@ -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;
}