- user->WriteNumeric(ERR_CANNOTSENDTOCHAN, "%s :Cannot send to channel (you're muted)", chan->name.c_str());
+ 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)");