]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/users.h
Someone got a comparison completely the wrong way around (and it wasnt spotted!)
[user/henk/code/inspircd.git] / include / users.h
index b5a737c8823f5fb9984173dd17a02f3abe07ebc0..f915a6e5f8ebe16cd573158191f49a570eadad59 100644 (file)
@@ -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 <connect:allow> tag
+        */
+       unsigned long pingmax;
+
        userrec();
        
        virtual ~userrec() {  }