diff options
| author | 2023-01-24 23:41:50 +0000 | |
|---|---|---|
| committer | 2023-01-25 00:39:27 +0000 | |
| commit | af8effe4f0876d6fa934806745712f679bd36278 (patch) | |
| tree | b0d6de94d60dc5e116faa5e14b6029fb1c527886 /src/modules/m_messageflood.cpp | |
| parent | Fix using (unsigned) long instead of (s)size_t. (diff) | |
| download | inspircd++-af8effe4f0876d6fa934806745712f679bd36278.tar.gz inspircd++-af8effe4f0876d6fa934806745712f679bd36278.tar.bz2 inspircd++-af8effe4f0876d6fa934806745712f679bd36278.zip | |
Replace getInt/getUInt/getFloat with type safe templated functions.
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); } |
