diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-15 10:59:36 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-15 10:59:36 +0000 |
commit | b45e7cfebbeaad4ecc3c55bc3060140f50f710d3 (patch) | |
tree | f5d168a3abe2b52b3e32f344c07ddeedaed3c698 /src/modules/m_joinflood.cpp | |
parent | ea483e49729ba1cd9b32feed8e49bb4f35691b2b (diff) |
Annotations
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5254 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_joinflood.cpp')
-rw-r--r-- | src/modules/m_joinflood.cpp | 7 |
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: |