summaryrefslogtreecommitdiff
path: root/src/servers.cpp~
diff options
context:
space:
mode:
Diffstat (limited to 'src/servers.cpp~')
-rw-r--r--src/servers.cpp~63
1 files changed, 0 insertions, 63 deletions
diff --git a/src/servers.cpp~ b/src/servers.cpp~
deleted file mode 100644
index 4055a60e1..000000000
--- a/src/servers.cpp~
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
-
-$Log$
-Revision 1.1 2003/01/26 23:53:03 brain
-Modified documentation for base classes
-Added base classes
-
-Revision 1.1 2003/01/26 20:15:03 brain
-Added server classes for linking
-
-
-*/
-
-#include "inspircd_config.h"
-#include "servers.h"
-#include "inspircd.h"
-#include <stdio.h>
-#include <map.h>
-
-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);
- jupiter = false;
-}
-
-
-serverrec::~serverrec()
-{
-}
-
-serverrec::serverrec(char* n, int link_t, 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);
- jupiter = jupe;
-}
-
-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);
-}
-