diff options
Diffstat (limited to 'src/servers.cpp')
-rw-r--r-- | src/servers.cpp | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/src/servers.cpp b/src/servers.cpp index 98da2264c..2affa9a94 100644 --- a/src/servers.cpp +++ b/src/servers.cpp @@ -11,14 +11,12 @@ serverrec::serverrec() { - leaf.clear(); strcpy(name,""); pingtime = 0; - linktype = LINK_ACTIVE; lastping = time(NULL); usercount_i = usercount = opercount = version = 0; hops_away = 1; - connected_at = time(NULL); + signon = time(NULL); jupiter = false; fd = 0; } @@ -28,30 +26,15 @@ serverrec::~serverrec() { } -serverrec::serverrec(char* n, int link_t, long ver, bool jupe) +serverrec::serverrec(char* n, long ver, bool jupe) { - leaf.clear(); strcpy(name,n); - linktype = link_t; lastping = time(NULL); usercount_i = usercount = opercount = 0; version = ver; hops_away = 1; - connected_at = time(NULL); + signon = time(NULL); jupiter = jupe; fd = 0; } -void serverrec::AddLeaf(serverrec *child) -{ - leaf[child->name] = child; -} - -void serverrec::DelLeaf(string n) -{ - server_list::iterator i = leaf.find(n); - - if (i != leaf.end()) - leaf.erase(i); -} - |