26 |
{ |
{ |
27 |
if (plugin != 0) |
if (plugin != 0) |
28 |
{ |
{ |
29 |
std::string command = plugin->GetCommand(); |
if (plugin->IsHelper()) |
30 |
|
{ |
31 |
if ( _plugins[ command ] == 0) |
_helper_plugins.push_back(plugin); |
32 |
_plugins[ command ] = plugin; |
} |
33 |
else |
else |
34 |
Logger::logMessage( std::string("AddPlugin() -- already have a plugin called ") + command); |
{ |
35 |
|
std::string command = plugin->GetCommand(); |
36 |
|
|
37 |
|
if ( _plugins[ command ] == 0) |
38 |
|
_plugins[ command ] = plugin; |
39 |
|
else |
40 |
|
Logger::logMessage( std::string("AddPlugin() -- already have a plugin called ") + command); |
41 |
|
} |
42 |
} |
} |
43 |
else |
else |
44 |
{ |
{ |