X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_spanningtree%2Flink.h;h=9423891676d00c3ed5aadf9fa3308f98fef066ea;hb=9ebd9cba72056c5b36696e166826afb981f25ebb;hp=5d15e58984b09c6cd37357eb9a57e623bc7de937;hpb=37c77c74a0c18d7c2ea57650d1f518697db75a8a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_spanningtree/link.h b/src/modules/m_spanningtree/link.h index 5d15e5898..942389167 100644 --- a/src/modules/m_spanningtree/link.h +++ b/src/modules/m_spanningtree/link.h @@ -1,28 +1,48 @@ -#ifndef __LINK_H__ -#define __LINK_H__ - -/** The Link class might as well be a struct, - * but this is C++ and we don't believe in structs (!). - * It holds the entire information of one - * tag from the main config file. We maintain a list - * of them, and populate the list on rehash/load. +/* +------------------------------------+ + * | Inspire Internet Relay Chat Daemon | + * +------------------------------------+ + * + * InspIRCd: (C) 2002-2010 InspIRCd Development Team + * See: http://wiki.inspircd.org/Credits + * + * This program is free but copyrighted software; see + * the file COPYING for details. + * + * --------------------------------------------------- */ -class Link : public classbase + +#ifndef M_SPANNINGTREE_LINK_H +#define M_SPANNINGTREE_LINK_H + +class Link : public refcountbase { public: + reference tag; irc::string Name; std::string IPAddr; int Port; std::string SendPass; std::string RecvPass; - unsigned long AutoConnect; - time_t NextConnectTime; + std::string Fingerprint; + std::string AllowMask; bool HiddenFromStats; - std::string FailOver; std::string Hook; int Timeout; std::string Bind; bool Hidden; + Link(ConfigTag* Tag) : tag(Tag) {} +}; + +class Autoconnect : public refcountbase +{ + public: + reference tag; + std::vector servers; + unsigned long Period; + time_t NextConnectTime; + /** Negative == inactive */ + int position; + Autoconnect(ConfigTag* Tag) : tag(Tag) {} }; #endif