Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

servers.cpp

Go to the documentation of this file.
00001 /*       +------------------------------------+
00002  *       | Inspire Internet Relay Chat Daemon |
00003  *       +------------------------------------+
00004  *
00005  *  Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
00006  *                       E-mail:
00007  *                <brain@chatspike.net>
00008  *                <Craig@chatspike.net>
00009  *     
00010  * Written by Craig Edwards, Craig McLure, and others.
00011  * This program is free but copyrighted software; see
00012  *            the file COPYING for details.
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 
00023 serverrec::serverrec()
00024 {
00025         strlcpy(name,"",256);
00026         pingtime = 0;
00027         lastping = time(NULL);
00028         usercount_i = usercount = opercount = version = 0;
00029         hops_away = 1;
00030         signon = time(NULL);
00031         jupiter = false;
00032         fd = 0;
00033         sync_soon = false;
00034         strlcpy(nickserv,"",NICKMAX);
00035 }
00036 
00037  
00038 serverrec::~serverrec()
00039 {
00040 }
00041 
00042 serverrec::serverrec(char* n, long ver, bool jupe)
00043 {
00044         strlcpy(name,n,256);
00045         lastping = time(NULL);
00046         usercount_i = usercount = opercount = 0;
00047         version = ver;
00048         hops_away = 1;
00049         signon = time(NULL);
00050         jupiter = jupe;
00051         fd = 0;
00052         sync_soon = false;
00053         strlcpy(nickserv,"",NICKMAX);
00054 }
00055 

Generated on Fri Mar 25 03:49:28 2005 for InspIRCd by doxygen 1.3.3