-/* +------------------------------------+\r * | Inspire Internet Relay Chat Daemon |\r * +------------------------------------+\r *\r * InspIRCd: (C) 2002-2007 InspIRCd Development Team\r * See: http://www.inspircd.org/wiki/index.php/Credits\r *\r * This program is free but copyrighted software; see\r * the file COPYING for details.\r *\r * ---------------------------------------------------\r */\r\r#ifndef __LINK_H__\r#define __LINK_H__\r\r/** The Link class might as well be a struct,\r * but this is C++ and we don't believe in structs (!).\r * It holds the entire information of one <link>\r * tag from the main config file. We maintain a list\r * of them, and populate the list on rehash/load.\r */\rclass Link : public classbase\r{\r public:\r irc::string Name;\r std::string IPAddr;\r int Port;\r std::string SendPass;\r std::string RecvPass;\r std::string AllowMask;\r unsigned long AutoConnect;\r time_t NextConnectTime;\r bool HiddenFromStats;\r std::string FailOver;\r std::string Hook;\r int Timeout;\r std::string Bind;\r bool Hidden;\r};\r\r#endif\r
\ No newline at end of file
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ * See: http://wiki.inspircd.org/Credits
+ *
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __LINK_H__
+#define __LINK_H__
+
+class Link : public refcountbase
+{
+ public:
+ reference<ConfigTag> tag;
+ irc::string Name;
+ std::string IPAddr;
+ int Port;
+ std::string SendPass;
+ std::string RecvPass;
+ std::string Fingerprint;
+ std::string AllowMask;
+ bool HiddenFromStats;
+ std::string Hook;
+ int Timeout;
+ std::string Bind;
+ bool Hidden;
+ Link(ConfigTag* Tag) : tag(Tag) {}
+};
+
+class Autoconnect : public refcountbase
+{
+ public:
+ reference<ConfigTag> tag;
+ std::vector<std::string> servers;
+ unsigned long Period;
+ time_t NextConnectTime;
+ /** Negative == inactive */
+ int position;
+ Autoconnect(ConfigTag* Tag) : tag(Tag) {}
+};
+
+
+#endif