diff options
| author | 2023-04-27 12:20:55 +0100 | |
|---|---|---|
| committer | 2023-04-27 12:21:13 +0100 | |
| commit | 4be5cf3342af7dcd4e8e23bc8ffe62eb8dc0c592 (patch) | |
| tree | ae746335e8d679af7ce3802d60d83e59bce2ec3f /src | |
| parent | Restore the last socket error properly on Windows. (diff) | |
Fix narrowing of the config in the messageflood module.
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/m_messageflood.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp index 3dc3a33d5..c6b5aa171 100644 --- a/src/modules/m_messageflood.cpp +++ b/src/modules/m_messageflood.cpp @@ -262,9 +262,9 @@ public: void ReadConfig(ConfigStatus&) override { const auto& tag = ServerInstance->Config->ConfValue("messageflood"); - notice = tag->getNum<float>("notice", 1.0); - privmsg = tag->getNum<float>("privmsg", 1.0); - tagmsg = tag->getNum<float>("tagmsg", 0.2); + notice = tag->getNum<double>("notice", 1.0); + privmsg = tag->getNum<double>("privmsg", 1.0); + tagmsg = tag->getNum<double>("tagmsg", 0.2); message = tag->getString("message", "Message flood (trigger is %messages% messages in %duration%)", 1); mf.extended = tag->getBool("extended"); mf.SetSyntax(); |
