diff options
Diffstat (limited to 'src/modules/m_messageflood.cpp')
| -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 e48883324..76e59b1b8 100644 --- a/src/modules/m_messageflood.cpp +++ b/src/modules/m_messageflood.cpp @@ -138,9 +138,9 @@ public: void ReadConfig(ConfigStatus&) override { const auto& tag = ServerInstance->Config->ConfValue("messageflood"); - notice = tag->getFloat("notice", 1.0); - privmsg = tag->getFloat("privmsg", 1.0); - tagmsg = tag->getFloat("tagmsg", 0.2); + notice = tag->getNum<float>("notice", 1.0); + privmsg = tag->getNum<float>("privmsg", 1.0); + tagmsg = tag->getNum<float>("tagmsg", 0.2); kickmessage = tag->getString("kickmessage", "Message flood (trigger is %lines% messages in %duration%)", 1); } |
