summaryrefslogtreecommitdiff
path: root/include/users.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-08 14:33:38 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-08 14:33:38 +0000
commit15e7fc7ac5699e198fc3fc155bf8a641d9db2d4a (patch)
tree627f8d048ee497cea0d1af4bd1bb2ebfa127a863 /include/users.h
parentf3017195549d748d2373ec51a6c798a6e3a61d00 (diff)
Added customizable pingfreq
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1012 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/users.h')
-rw-r--r--include/users.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/users.h b/include/users.h
index b5a737c88..f915a6e5f 100644
--- a/include/users.h
+++ b/include/users.h
@@ -57,6 +57,9 @@ class ConnectClass : public classbase
/** Host mask for this line
*/
char host[MAXBUF];
+ /** Number of seconds between pings for this line
+ */
+ int pingtime;
/** (Optional) Password for this line
*/
char pass[MAXBUF];
@@ -65,6 +68,7 @@ class ConnectClass : public classbase
{
registration_timeout = 0;
flood = 0;
+ pingtime = 0;
strlcpy(host,"",MAXBUF);
strlcpy(pass,"",MAXBUF);
}
@@ -159,6 +163,10 @@ class userrec : public connection
*/
bool dns_done;
+ /** Number of seconds between PINGs for this user (set from &lt;connect:allow&gt; tag
+ */
+ unsigned long pingmax;
+
userrec();
virtual ~userrec() { }