summaryrefslogtreecommitdiff
path: root/src/modules/m_connflood.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_connflood.cpp')
-rw-r--r--src/modules/m_connflood.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/m_connflood.cpp b/src/modules/m_connflood.cpp
index 9d7c9cb2c..71516063b 100644
--- a/src/modules/m_connflood.cpp
+++ b/src/modules/m_connflood.cpp
@@ -50,15 +50,15 @@ public:
void InitConf()
{
/* read configuration variables */
- ConfigReader conf;
+ ConfigTag* tag = ServerInstance->Config->ConfValue("connflood");
/* throttle configuration */
- seconds = conf.ReadInteger("connflood", "seconds", 0, true);
- maxconns = conf.ReadInteger("connflood", "maxconns", 0, true);
- timeout = conf.ReadInteger("connflood", "timeout", 0, true);
- quitmsg = conf.ReadValue("connflood", "quitmsg", 0);
+ seconds = tag->getInt("seconds");
+ maxconns = tag->getInt("maxconns");
+ timeout = tag->getInt("timeout");
+ quitmsg = tag->getString("quitmsg");
/* seconds to wait when the server just booted */
- boot_wait = conf.ReadInteger("connflood", "bootwait", 0, true);
+ boot_wait = tag->getInt("bootwait");
first = ServerInstance->Time();
}