/[projects]/smsdaemon/PluginManager.cpp
ViewVC logotype

Diff of /smsdaemon/PluginManager.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 157 by torben, Mon Dec 8 21:28:40 2008 UTC revision 184 by torben, Fri Dec 12 14:06:11 2008 UTC
# Line 26  void PluginManager::AddPlugin(Plugin* pl Line 26  void PluginManager::AddPlugin(Plugin* pl
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          {          {

Legend:
Removed from v.157  
changed lines
  Added in v.184

  ViewVC Help
Powered by ViewVC 1.1.20