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