From 66d187fa55b4fdcb38ec987c269c4c1573a441b5 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 27 Aug 2007 20:50:07 +0000 Subject: Store id in TreeServer, use TreeServer::GetID() to get the id (NOTE: it is std::string) Server id sent on all outbound and inbound SERVER now. last parameter before desc. Min params for SERVER is now 5, not 4. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7918 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/treeserver.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/modules/m_spanningtree/treeserver.cpp') diff --git a/src/modules/m_spanningtree/treeserver.cpp b/src/modules/m_spanningtree/treeserver.cpp index d13075f0f..d252f2386 100644 --- a/src/modules/m_spanningtree/treeserver.cpp +++ b/src/modules/m_spanningtree/treeserver.cpp @@ -124,6 +124,16 @@ TreeServer::TreeServer(SpanningTreeUtilities* Util, InspIRCd* Instance, std::str this->AddHashEntry(); } +std::string& TreeServer::GetID() +{ + return sid; +} + +void TreeServer::SetID(const std::string &id) +{ + sid = id; +} + int TreeServer::QuitUsers(const std::string &reason) { const char* reason_s = reason.c_str(); -- cgit v1.3.1-10-gc9f91