1
0

PluginManager::Bind displays more information in the error message.

This commit is contained in:
madmaxoft 2013-11-13 15:50:05 +01:00
parent f0febc2fca
commit a8ad7c2383

View File

@ -1511,11 +1511,11 @@ bool cPluginManager::BindConsoleCommand(const AString & a_Command, cPlugin * a_P
{ {
if (cmd->second.m_Plugin == NULL) if (cmd->second.m_Plugin == NULL)
{ {
LOGWARNING("Console command \"%s\" is already bound internally by MCServer.", a_Command.c_str()); LOGWARNING("Console command \"%s\" is already bound internally by MCServer, cannot bind in plugin \"%s\".", a_Command.c_str(), a_Plugin->GetName().c_str());
} }
else else
{ {
LOGWARNING("Console command \"%s\" is already bound to plugin \"%s\".", a_Command.c_str(), cmd->second.m_Plugin->GetName().c_str()); LOGWARNING("Console command \"%s\" is already bound to plugin \"%s\", cannot bind in plugin \"%s\".", a_Command.c_str(), cmd->second.m_Plugin->GetName().c_str(), a_Plugin->GetName().c_str());
} }
return false; return false;
} }