diff --git a/src/zm_image_analyser.cpp b/src/zm_image_analyser.cpp index 52414f6fd..8feaecf1c 100644 --- a/src/zm_image_analyser.cpp +++ b/src/zm_image_analyser.cpp @@ -499,7 +499,7 @@ void ImageAnalyser::cleanupPlugins() if ( mysql_query( &dbconn, sql ) ) { - Error( "Can't delete plugint: %s", mysql_error( &dbconn ) ); + Error( "Can't delete plugin: %s", mysql_error( &dbconn ) ); exit( mysql_errno( &dbconn ) ); } } diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index 66b87cf36..b2fce5a13 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -1449,7 +1449,7 @@ bool Monitor::Analyse() } } else - event->AddCause( det_cause ); + event->AddCause( det_cause ); } } #endif // ZM_PLUGINS_ON @@ -1520,10 +1520,7 @@ bool Monitor::Analyse() // Create event event = new Event( this, *timestamp, "Continuous", noteSetMap ); shared_data->last_event = event->Id(); -#if ZM_PLUGINS_ON - if (config.load_plugins) - ThePluginManager.getImageAnalyser().onCreateEvent( zones, event ); -#endif // ZM_PLUGINS_ON + Info( "%s: %03d - Opening new event %d, section start", name, image_count, event->Id() ); /* To prevent cancelling out an existing alert\prealarm\alarm state */