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

Generated on Sun May 15 18:36:02 2005 for InspIRCd by doxygen 1.3.3