summaryrefslogtreecommitdiff
path: root/src/servers.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2003-02-02 16:43:53 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2003-02-02 16:43:53 +0000
commit8cc90ca14d84ef8ec83989de45854a2c7855ee4f (patch)
tree771a440c41b57f043119decee41e4fcaac3ba12a /src/servers.cpp
parent6e442fdbe3e2bebea9049399163698f4a892f685 (diff)
Added first part of server linking code
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@160 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/servers.cpp')
-rw-r--r--src/servers.cpp23
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);
-}
-