X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fusers.h;h=f915a6e5f8ebe16cd573158191f49a570eadad59;hb=8edd8f730d8e7781b1d3df25c61b1e123fad7a4f;hp=a1739a2a1ba1d531e91cdd636c72a3c448b71bdf;hpb=90cc4b0ee93696e6e6b3208cd2877ae6e786440d;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/users.h b/include/users.h index a1739a2a1..f915a6e5f 100644 --- a/include/users.h +++ b/include/users.h @@ -1,12 +1,23 @@ -/* - - -*/ +/* +------------------------------------+ + * | Inspire Internet Relay Chat Daemon | + * +------------------------------------+ + * + * Inspire is copyright (C) 2002-2004 ChatSpike-Dev. + * E-mail: + * + * + * + * 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 #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 <connect:allow> tag + */ + unsigned long pingmax; + userrec(); virtual ~userrec() { }