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.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/m_connflood.cpp b/src/modules/m_connflood.cpp
index 04fe45627..419dbab9c 100644
--- a/src/modules/m_connflood.cpp
+++ b/src/modules/m_connflood.cpp
@@ -28,8 +28,7 @@ private:
public:
- ModuleConnFlood(InspIRCd* Me) : Module(Me)
- {
+ ModuleConnFlood() {
InitConf();
Implementation eventlist[] = { I_OnRehash, I_OnUserRegister };
@@ -48,7 +47,7 @@ public:
void InitConf()
{
/* read configuration variables */
- conf = new ConfigReader(ServerInstance);
+ conf = new ConfigReader;
/* throttle configuration */
seconds = conf->ReadInteger("connflood", "seconds", 0, true);
maxconns = conf->ReadInteger("connflood", "maxconns", 0, true);