From 90976b66728fcc671f3ecc4a2d39e438d6d8bcb6 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 1 Aug 2010 20:05:52 -0400 Subject: Fixed some issues with reconnecting if we disconnect from the uplink --- include/servers.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/servers.h b/include/servers.h index efb6ace62..cbf017df8 100644 --- a/include/servers.h +++ b/include/servers.h @@ -86,7 +86,7 @@ class CoreExport Server : public Flags /* Server ID */ Anope::string SID; /* Links for this server */ - std::list Links; + std::vector Links; /* Uplink for this server */ Server *UplinkServer; @@ -140,7 +140,7 @@ class CoreExport Server : public Flags /** Get the list of links this server has, or NULL if it has none * @return A list of servers */ - const std::list &GetLinks() const; + const std::vector &GetLinks() const; /** Get the uplink server for this server, if this is our uplink will be Me * @return The servers uplink @@ -157,6 +157,10 @@ class CoreExport Server : public Flags */ void DelLink(Server *s); + /** Remove all links from this server + */ + void ClearLinks(); + /** Finish syncing this server and optionally all links to it * @param SyncLinks True to sync the links for this server too (if any) */ -- cgit