-/*
-
-
-*/
+/* +------------------------------------+
+ * | 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__
/** 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];
{
registration_timeout = 0;
flood = 0;
- strcpy(host,"");
- strcpy(pass,"");
+ pingtime = 0;
+ strlcpy(host,"",MAXBUF);
+ strlcpy(pass,"",MAXBUF);
}
};
*/
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() { }
* This is done by looking up their oper type from userrec::oper, then referencing
* this to their oper classes and checking the commands they can execute.
*/
- virtual bool HasPermission(char* command);
+ bool HasPermission(char* command);
};