]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/users.h
Removed deprecated class 'packet'
[user/henk/code/inspircd.git] / include / users.h
index a1739a2a1ba1d531e91cdd636c72a3c448b71bdf..f915a6e5f8ebe16cd573158191f49a570eadad59 100644 (file)
@@ -1,12 +1,23 @@
-/*
-
-
-*/
+/*       +------------------------------------+
+ *       | Inspire Internet Relay Chat Daemon |
+ *       +------------------------------------+
+ *
+ *  Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
+ *                       E-mail:
+ *                <brain@chatspike.net>
+ *               <Craig@chatspike.net>
+ *     
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ *            the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
 
 #include "inspircd_config.h" 
 #include "channels.h"
 #include "connection.h"
-
+#include "inspstring.h"
 #include <string>
  
 #ifndef __USERS_H__ 
@@ -46,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];
@@ -54,8 +68,9 @@ class ConnectClass : public classbase
        {
                registration_timeout = 0;
                flood = 0;
-               strcpy(host,"");
-               strcpy(pass,"");
+               pingtime = 0;
+               strlcpy(host,"",MAXBUF);
+               strlcpy(pass,"",MAXBUF);
        }
 };
 
@@ -144,6 +159,14 @@ class userrec : public connection
         */
        char oper[NICKMAX];
 
+        /** True when DNS lookups are completed.
+         */
+        bool dns_done;
+
+       /** Number of seconds between PINGs for this user (set from &lt;connect:allow&gt; tag
+        */
+       unsigned long pingmax;
+
        userrec();
        
        virtual ~userrec() {  }