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

Generated on Thu May 12 22:58:59 2005 for InspIRCd by doxygen 1.3.3