summaryrefslogtreecommitdiff
path: root/include/users.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-09 10:50:26 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-09 10:50:26 +0000
commit998d526600b866b26bf2d865f21716b5a7eb6c71 (patch)
tree52ddfd2ac3884e18aeae60dc1e21cd34e25d25dc /include/users.h
parent87faee0b4cdb984d3b899b0a9e5538018e56a739 (diff)
Added flood= value to connect allow classes, added checking for flooding
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@462 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/users.h')
-rw-r--r--include/users.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/include/users.h b/include/users.h
index dbb237c5f..c1a6aa3af 100644
--- a/include/users.h
+++ b/include/users.h
@@ -34,14 +34,26 @@ class Invited : public classbase
class ConnectClass : public classbase
{
public:
+ /** Type of line, either CC_ALLOW or CC_DENY
+ */
int type;
+ /** Max time to register the connection in seconds
+ */
int registration_timeout;
+ /** Number of lines in buffer before excess flood is triggered
+ */
+ int flood;
+ /** Host mask for this line
+ */
char host[MAXBUF];
+ /** (Optional) Password for this line
+ */
char pass[MAXBUF];
ConnectClass()
{
registration_timeout = 0;
+ flood = 0;
strcpy(host,"");
strcpy(pass,"");
}
@@ -113,8 +125,16 @@ class userrec : public connection
*/
char result[256];
- char carryover[MAXBUF];
+ /** Number of lines the user can place into the buffer
+ * (up to the global NetBufferSize bytes) before they
+ * are disconnected for excess flood
+ */
+ int flood;
+ /** Number of seconds this user is given to send USER/NICK
+ * If they do not send their details in this time limit they
+ * will be disconnected
+ */
unsigned long timeout;
userrec();