]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - src/modules/m_spanningtree/link.h
Allow multiple allowmasks in link blocks, #679
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / link.h
1 /*
2  * InspIRCd -- Internet Relay Chat Daemon
3  *
4  *   Copyright (C) 2007 Dennis Friis <peavey@inspircd.org>
5  *   Copyright (C) 2007 Craig Edwards <craigedwards@brainbox.cc>
6  *
7  * This file is part of InspIRCd.  InspIRCd is free software: you can
8  * redistribute it and/or modify it under the terms of the GNU General Public
9  * License as published by the Free Software Foundation, version 2.
10  *
11  * This program is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
14  * details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18  */
19
20
21 #pragma once
22
23 class Link : public refcountbase
24 {
25  public:
26         reference<ConfigTag> tag;
27         irc::string Name;
28         std::string IPAddr;
29         int Port;
30         std::string SendPass;
31         std::string RecvPass;
32         std::string Fingerprint;
33         std::vector<std::string> AllowMasks;
34         bool HiddenFromStats;
35         std::string Hook;
36         int Timeout;
37         std::string Bind;
38         bool Hidden;
39         Link(ConfigTag* Tag) : tag(Tag) {}
40 };
41
42 class Autoconnect : public refcountbase
43 {
44  public:
45         reference<ConfigTag> tag;
46         std::vector<std::string> servers;
47         unsigned long Period;
48         time_t NextConnectTime;
49         /** Negative == inactive */
50         int position;
51         Autoconnect(ConfigTag* Tag) : tag(Tag) {}
52 };