summaryrefslogtreecommitdiff
path: root/src/modules/m_connflood.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-09 18:55:52 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-09 18:55:52 +0000
commit9bc04a302572eb311a147a32ff1d36f1d91f2d7a (patch)
tree847f867baeefde36c133387b578aa937c37b4360 /src/modules/m_connflood.cpp
parent2591562ada4cb1f866e5d1c98340fb19332b3844 (diff)
userrec and chanrec now have their own independent pointer back to their 'creator' InspIRCd* object, extern now longer required in channels.cpp or users.cpp
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4820 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_connflood.cpp')
-rw-r--r--src/modules/m_connflood.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/modules/m_connflood.cpp b/src/modules/m_connflood.cpp
index e5d3fd2ad..b1a9d8c7c 100644
--- a/src/modules/m_connflood.cpp
+++ b/src/modules/m_connflood.cpp
@@ -20,12 +20,16 @@ using namespace std;
#include "users.h"
#include "modules.h"
+#include "helperfuncs.h"
+#include "inspircd.h"
/* $ModDesc: Connection throttle */
int conns = 0, throttled = 0;
extern time_t TIME;
+extern InspIRCd* ServerInstance;
+
class ModuleConnFlood : public Module
{
private:
@@ -94,7 +98,7 @@ public:
Srv->SendOpers("*** Connection throttle deactivated");
return;
}
- userrec::QuitUser(user, quitmsg);
+ userrec::QuitUser(ServerInstance, user, quitmsg);
return;
}
@@ -104,7 +108,7 @@ public:
{
throttled = 1;
Srv->SendOpers("*** Connection throttle activated");
- userrec::QuitUser(user, quitmsg);
+ userrec::QuitUser(ServerInstance, user, quitmsg);
return;
}
}