diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-10-06 21:43:20 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-11-12 21:48:42 +0100 |
commit | a4db7bf9af00b32d4f5c1922997d02b0b8be59e5 (patch) | |
tree | 2fd4c4ee2344300285f919968760f27f9ca41df4 /src/modules/m_connflood.cpp | |
parent | 62149fcd86711d3ca7457a327c4e8fa2e7d85582 (diff) |
Remove usage of the deprecated ConfigReader
Diffstat (limited to 'src/modules/m_connflood.cpp')
-rw-r--r-- | src/modules/m_connflood.cpp | 12 |
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(); } |