From fd6deeeee67049b881a1b52db68123a3a3a44fe2 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sun, 10 Mar 2013 15:27:55 +0100 Subject: [PATCH] Implement "Negate" header. --- components/livestatus/query.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/livestatus/query.cpp b/components/livestatus/query.cpp index 4821b4076..7c90b0470 100644 --- a/components/livestatus/query.cpp +++ b/components/livestatus/query.cpp @@ -113,6 +113,13 @@ Query::Query(const vector& lines) } filters.push_back(filter); + } else if (header == "Negate") { + if (!filters.empty()) { + Filter::Ptr filter = filters.back(); + filters.pop_back(); + + filters.push_back(boost::make_shared(filter)); + } } } -- 2.40.0