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 #include "inspstring.h"
00023
00024 serverrec::serverrec()
00025 {
00026 strlcpy(name,"",256);
00027 pingtime = 0;
00028 lastping = time(NULL);
00029 usercount_i = usercount = opercount = version = 0;
00030 hops_away = 1;
00031 signon = time(NULL);
00032 jupiter = false;
00033 fd = 0;
00034 sync_soon = false;
00035 strlcpy(nickserv,"",NICKMAX);
00036 }
00037
00038
00039 serverrec::~serverrec()
00040 {
00041 }
00042
00043 serverrec::serverrec(char* n, long ver, bool jupe)
00044 {
00045 strlcpy(name,n,256);
00046 lastping = time(NULL);
00047 usercount_i = usercount = opercount = 0;
00048 version = ver;
00049 hops_away = 1;
00050 signon = time(NULL);
00051 jupiter = jupe;
00052 fd = 0;
00053 sync_soon = false;
00054 strlcpy(nickserv,"",NICKMAX);
00055 }
00056