summaryrefslogtreecommitdiffstats
path: root/src/Server.cpp
diff options
context:
space:
mode:
authorSamuel Barney <sbarney@instructure.com>2016-07-18 22:39:11 +0200
committerSamuel Barney <samjbarney@gmail.com>2016-08-15 19:13:03 +0200
commit24e89bbb2c656224d06aed084b952bbc885e3914 (patch)
treeba75a68cce6ea868acba60ae08efeeccf003736d /src/Server.cpp
parentSwitch out long download/compile links. (#3278) (diff)
downloadcuberite-24e89bbb2c656224d06aed084b952bbc885e3914.tar
cuberite-24e89bbb2c656224d06aed084b952bbc885e3914.tar.gz
cuberite-24e89bbb2c656224d06aed084b952bbc885e3914.tar.bz2
cuberite-24e89bbb2c656224d06aed084b952bbc885e3914.tar.lz
cuberite-24e89bbb2c656224d06aed084b952bbc885e3914.tar.xz
cuberite-24e89bbb2c656224d06aed084b952bbc885e3914.tar.zst
cuberite-24e89bbb2c656224d06aed084b952bbc885e3914.zip
Diffstat (limited to 'src/Server.cpp')
-rw-r--r--src/Server.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Server.cpp b/src/Server.cpp
index ba469bd3e..7eb99dfde 100644
--- a/src/Server.cpp
+++ b/src/Server.cpp
@@ -17,6 +17,7 @@
#include "WebAdmin.h"
#include "Protocol/ProtocolRecognizer.h"
#include "CommandOutput.h"
+#include "ChannelManager.h"
#include "IniFile.h"
#include "Vector3.h"
@@ -89,6 +90,15 @@ public:
+cServer::~cServer()
+{
+ m_ChannelManager = nullptr;
+}
+
+
+
+
+
////////////////////////////////////////////////////////////////////////////////
// cServer::cTickThread:
@@ -147,6 +157,9 @@ cServer::cServer(void) :
{
// Initialize the LuaStateTracker singleton before the app goes multithreaded:
cLuaStateTracker::GetStats();
+
+ // Create a new channel manager
+ m_ChannelManager = UniquePtr<cChannelManager>(new cChannelManager());
}
@@ -705,3 +718,7 @@ void cServer::AuthenticateUser(int a_ClientID, const AString & a_Name, const ASt
+cChannelManager * cServer::GetChannelManager()
+{
+ return m_ChannelManager.get();
+}