00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include "inspircd_config.h"
00018 #include "servers.h"
00019 #include "inspircd.h"
00020 #include <stdio.h>
00021 #include <map>
00022
00023 serverrec::serverrec()
00024 {
00025 strlcpy(name,"",256);
00026 pingtime = 0;
00027 lastping = time(NULL);
00028 usercount_i = usercount = opercount = version = 0;
00029 hops_away = 1;
00030 signon = time(NULL);
00031 jupiter = false;
00032 fd = 0;
00033 sync_soon = false;
00034 strlcpy(nickserv,"",NICKMAX);
00035 }
00036
00037
00038 serverrec::~serverrec()
00039 {
00040 }
00041
00042 serverrec::serverrec(char* n, long ver, bool jupe)
00043 {
00044 strlcpy(name,n,256);
00045 lastping = time(NULL);
00046 usercount_i = usercount = opercount = 0;
00047 version = ver;
00048 hops_away = 1;
00049 signon = time(NULL);
00050 jupiter = jupe;
00051 fd = 0;
00052 sync_soon = false;
00053 strlcpy(nickserv,"",NICKMAX);
00054 }
00055