summaryrefslogtreecommitdiff
path: root/include/servers.h
blob: fc271b37e2ed26df2b3d93be38f70dbdac38ee93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*


*/

#include "inspircd_config.h" 
#include "connection.h"
#include <string>
#include <map.h>
 
#ifndef __SERVERS_H__ 
#define __SERVERS_H__ 
 
#define LINK_ACTIVE	1
#define LINK_INACTIVE	0

class serverrec : public connection
{
 private:
 public:
	char name[MAXBUF]; 	// server name
	long pingtime;		// last ping response (ms)
	long usercount_i;	// invisible users on server
	long usercount;		// non-invisible users on server
	long opercount;		// opers on server
	int hops_away;	// number of hops away (for quick access)
	long version;		// ircd version
	bool jupiter;		// is a JUPE server (faked to enforce a server ban)

	serverrec();
	serverrec(char* n, long ver, bool jupe);
	~serverrec();
};



typedef map<string, serverrec*> server_list;

#endif