diff options
| author | 2025-09-07 12:47:50 +0100 | |
|---|---|---|
| committer | 2025-09-07 12:48:39 +0100 | |
| commit | ee88e1c2d15a89adf75d51b78c8cc41642ae04f6 (patch) | |
| tree | 2a350859f65fe69feee4b382b2f81fde8c2ee924 | |
| parent | Add a way to opt into the old "reset on hit" messageflood behaviour. (diff) | |
Lower the weight of tag messages from 0.2 to 0.1.
| -rw-r--r-- | docs/conf/modules.example.conf | 2 | ||||
| -rw-r--r-- | src/modules/m_messageflood.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/conf/modules.example.conf b/docs/conf/modules.example.conf index 22fd24219..8f5127772 100644 --- a/docs/conf/modules.example.conf +++ b/docs/conf/modules.example.conf @@ -1649,7 +1649,7 @@ # extended="yes" # notice="1.0" # privmsg="1.0" -# tagmsg="0.2" +# tagmsg="0.1" # resetonhit="no"> #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp index faa4e5912..d22591515 100644 --- a/src/modules/m_messageflood.cpp +++ b/src/modules/m_messageflood.cpp @@ -289,7 +289,7 @@ public: const auto& tag = ServerInstance->Config->ConfValue("messageflood"); notice = tag->getNum<double>("notice", 1.0); privmsg = tag->getNum<double>("privmsg", 1.0); - tagmsg = tag->getNum<double>("tagmsg", 0.2); + tagmsg = tag->getNum<double>("tagmsg", 0.1); message = tag->getString("message", "Message flood detected (trigger is %messages% messages in %duration.long%)", 1); mf.extended = tag->getBool("extended"); resetonhit = tag->getBool("resetonhit", !mf.extended); |
