summaryrefslogtreecommitdiff
path: root/src/modules/m_joinflood.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_joinflood.cpp')
-rw-r--r--src/modules/m_joinflood.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/m_joinflood.cpp b/src/modules/m_joinflood.cpp
index 99a872457..8557ad11f 100644
--- a/src/modules/m_joinflood.cpp
+++ b/src/modules/m_joinflood.cpp
@@ -26,8 +26,8 @@ using namespace std;
/* $ModDesc: Provides channel mode +j (join flood protection) */
-
-
+/** Holds settings and state associated with channel mode +j
+ */
class joinfloodsettings : public classbase
{
public:
@@ -40,6 +40,7 @@ class joinfloodsettings : public classbase
bool locked;
joinfloodsettings() : secs(0), joins(0) {};
+
joinfloodsettings(int b, int c) : secs(b), joins(c)
{
reset = time(NULL) + secs;
@@ -92,6 +93,8 @@ class joinfloodsettings : public classbase
};
+/** Handles channel mode +j
+ */
class JoinFlood : public ModeHandler
{
public: