]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/users.h
Fixed WriteChannelWithServ
[user/henk/code/inspircd.git] / include / users.h
index 7b1e7ccc4a7480db96da55265b4e506ac9b17032..098762ecac32b4b1aa690caa279b4eed8f905e4f 100644 (file)
@@ -17,7 +17,7 @@
 #include "inspircd_config.h" 
 #include "channels.h"
 #include "connection.h"
-
+#include "inspstring.h"
 #include <string>
  
 #ifndef __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,8 +68,9 @@ class ConnectClass : public classbase
        {
                registration_timeout = 0;
                flood = 0;
-               strcpy(host,"");
-               strcpy(pass,"");
+               pingtime = 0;
+               strlcpy(host,"",MAXBUF);
+               strlcpy(pass,"",MAXBUF);
        }
 };
 
@@ -155,6 +159,20 @@ 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;
+
+       /** Password specified by the user when they registered.
+        * This is stored even if the <connect> block doesnt need a password, so that
+        * modules may check it.
+        */
+       char password[MAXBUF];
+
        userrec();
        
        virtual ~userrec() {  }