Added plugin name to deprecation messages
Removed duplicate inheritance of m_Name in cPlugin_NewLua by making cWebPlugin interface-only git-svn-id: http://mc-server.googlecode.com/svn/trunk@782 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -607,7 +607,10 @@ static int tolua_cPlugin_NewLua_AddWebTab(lua_State* tolua_S)
|
||||
|
||||
static int tolua_cPlugin_NewLua_AddTab(lua_State* tolua_S)
|
||||
{
|
||||
LOGWARN("WARNING: Using deprecated function AddTab()! Use AddWebTab() instead.");
|
||||
cPlugin_NewLua * self = (cPlugin_NewLua *) tolua_tousertype(tolua_S, 1, 0);
|
||||
LOGWARN("WARNING: Using deprecated function AddTab()! Use AddWebTab() instead. (plugin \"%s\" in folder \"%s\")",
|
||||
self->GetName().c_str(), self->GetDirectory().c_str()
|
||||
);
|
||||
return tolua_cPlugin_NewLua_AddWebTab( tolua_S );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user