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

Generated on Mon Mar 28 21:09:25 2005 for InspIRCd by doxygen 1.3.3