diff options
author | Adam <Adam@anope.org> | 2010-08-01 20:05:52 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-08-01 20:05:52 -0400 |
commit | 90976b66728fcc671f3ecc4a2d39e438d6d8bcb6 (patch) | |
tree | 3bfa64be578a52480b1c18535e46a14a72592df0 /include/servers.h | |
parent | e8d6524411e188f4de32a231857b078b57aef151 (diff) |
Fixed some issues with reconnecting if we disconnect from the uplink
Diffstat (limited to 'include/servers.h')
-rw-r--r-- | include/servers.h | 8 |
1 files changed, 6 insertions, 2 deletions
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<ServerFlag> /* Server ID */ Anope::string SID; /* Links for this server */ - std::list<Server *> Links; + std::vector<Server *> Links; /* Uplink for this server */ Server *UplinkServer; @@ -140,7 +140,7 @@ class CoreExport Server : public Flags<ServerFlag> /** Get the list of links this server has, or NULL if it has none * @return A list of servers */ - const std::list<Server *> &GetLinks() const; + const std::vector<Server *> &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<ServerFlag> */ 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) */ |