mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@160 e03df62e-2008-0410-955e-edbf42e46eb7
41 lines
758 B
C++
41 lines
758 B
C++
/*
|
|
|
|
|
|
*/
|
|
|
|
#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
|
|
|