From b45e7cfebbeaad4ecc3c55bc3060140f50f710d3 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 15 Sep 2006 10:59:36 +0000 Subject: Annotations git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5254 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_joinflood.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/modules/m_joinflood.cpp') 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: -- cgit v1.2.3