diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-07-27 18:12:34 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-07-27 18:12:34 +0200 |
commit | 05e594030ccfc044ac69f650eccaba8e981ce329 (patch) | |
tree | f4d39d617d76e58a3a6f5ded0c494842291371a5 /src/modules/m_spanningtree/treesocket.h | |
parent | a7043cc3d3a30a7d8a14e9c12f3628836a2b1397 (diff) |
m_spanningtree Deduplicate auth finish code
Diffstat (limited to 'src/modules/m_spanningtree/treesocket.h')
-rw-r--r-- | src/modules/m_spanningtree/treesocket.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/treesocket.h b/src/modules/m_spanningtree/treesocket.h index 27c8ab275..9dbc212a1 100644 --- a/src/modules/m_spanningtree/treesocket.h +++ b/src/modules/m_spanningtree/treesocket.h @@ -129,6 +129,16 @@ class TreeSocket : public BufferedSocket */ User* FindSource(const std::string& prefix, const std::string& command); + /** Finish the authentication phase of this connection. + * Change the state of the connection to CONNECTED, create a TreeServer object for the server on the + * other end of the connection using the details provided in the parameters, and finally send a burst. + * @param remotename Name of the remote server + * @param remotesid SID of the remote server + * @param remotedesc Description of the remote server + * @param hidden True if the remote server is hidden according to the configuration + */ + void FinishAuth(const std::string& remotename, const std::string& remotesid, const std::string& remotedesc, bool hidden); + public: const time_t age; |