summaryrefslogtreecommitdiffstats
path: root/source/cWebPlugin.cpp
blob: 43e5e5e5472b3df098b6a0f32525a699fe87ba7b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "cWebPlugin.h"
#include "cWebAdmin.h"
#include "cServer.h"
#include "cMCLogger.h"
#include "cRoot.h"

#include "MemoryLeak.h"

cWebPlugin::cWebPlugin( lua_State* L )
{
	LOG("cWebPlugin::cWebPlugin()");
	m_LuaState = L;
	cWebAdmin* WebAdmin = cRoot::Get()->GetWebAdmin();
	if( WebAdmin ) WebAdmin->AddPlugin( this );
}

cWebPlugin::~cWebPlugin()
{
	LOG("~cWebPlugin::cWebPlugin()");
	cWebAdmin* WebAdmin = cRoot::Get()->GetWebAdmin();
	if( WebAdmin ) WebAdmin->RemovePlugin( this );
}