]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - src/servers.cpp
Fixed a ton of MODE crap 'avec le' services :p
[user/henk/code/inspircd.git] / src / servers.cpp
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
6  *                       E-mail:
7  *                <brain@chatspike.net>
8  *                <Craig@chatspike.net>
9  *     
10  * Written by Craig Edwards, Craig McLure, and others.
11  * This program is free but copyrighted software; see
12  *            the file COPYING for details.
13  *
14  * ---------------------------------------------------
15  */
16
17 #include "inspircd_config.h" 
18 #include "servers.h"
19 #include "inspircd.h"
20 #include <stdio.h>
21 #include <map>
22
23 serverrec::serverrec()
24 {
25         strlcpy(name,"",256);
26         pingtime = 0;
27         lastping = time(NULL);
28         usercount_i = usercount = opercount = version = 0;
29         hops_away = 1;
30         signon = time(NULL);
31         jupiter = false;
32         fd = 0;
33         sync_soon = false;
34         strlcpy(nickserv,"",NICKMAX);
35 }
36
37  
38 serverrec::~serverrec()
39 {
40 }
41
42 serverrec::serverrec(char* n, long ver, bool jupe)
43 {
44         strlcpy(name,n,256);
45         lastping = time(NULL);
46         usercount_i = usercount = opercount = 0;
47         version = ver;
48         hops_away = 1;
49         signon = time(NULL);
50         jupiter = jupe;
51         fd = 0;
52         sync_soon = false;
53         strlcpy(nickserv,"",NICKMAX);
54 }
55