Implements plugin: channel-safely v0.3.1

develop
Josh Cooper 2022-11-06 12:09:38 -08:00
parent b7ee01108e
commit a8dcfeead9
1 changed files with 51 additions and 53 deletions

@ -146,7 +146,6 @@ namespace CSP {
} }
void JobStartedEvent(color_ostream &out, void* p) { void JobStartedEvent(color_ostream &out, void* p) {
if (config.monitor_active) {
if (enabled && World::isFortressMode() && Maps::IsValid()) { if (enabled && World::isFortressMode() && Maps::IsValid()) {
INFO(monitor).print("JobStartedEvent()\n"); INFO(monitor).print("JobStartedEvent()\n");
auto job = (df::job*) p; auto job = (df::job*) p;
@ -206,7 +205,6 @@ namespace CSP {
INFO(monitor).print(" <- JobStartedEvent() exits normally\n"); INFO(monitor).print(" <- JobStartedEvent() exits normally\n");
} }
} }
}
void JobCompletedEvent(color_ostream &out, void* job_ptr) { void JobCompletedEvent(color_ostream &out, void* job_ptr) {
if (enabled && World::isFortressMode() && Maps::IsValid()) { if (enabled && World::isFortressMode() && Maps::IsValid()) {