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