diff options
| author | 2007-08-27 20:50:07 +0000 | |
|---|---|---|
| committer | 2007-08-27 20:50:07 +0000 | |
| commit | 66d187fa55b4fdcb38ec987c269c4c1573a441b5 (patch) | |
| tree | 6560fe4224b89abf745ef8a90d913ef85b582441 /src/modules/m_spanningtree/treeserver.cpp | |
| parent | Add <server:id> - this is optional, as stated in the example conf, (diff) | |
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
Diffstat (limited to 'src/modules/m_spanningtree/treeserver.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/treeserver.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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(); |
