diff options
author | Matt Schatz <genius3000@g3k.solutions> | 2019-02-22 06:44:57 -0700 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-02-22 13:44:57 +0000 |
commit | 9b25df31096f889e3653ab100493133014d4fe73 (patch) | |
tree | 7988eef9dce0c43c0f554e10e5c69629aa72b344 /include | |
parent | fa83fac94ab7cb5e18a546858054f3910ef24235 (diff) |
Improve the handling of config X-lines and filters. (#1583)
Diffstat (limited to 'include')
-rw-r--r-- | include/xline.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/xline.h b/include/xline.h index f593c1c97..bc9739f21 100644 --- a/include/xline.h +++ b/include/xline.h @@ -515,8 +515,9 @@ class CoreExport XLineManager /** Expire a line given two iterators which identify it in the main map. * @param container Iterator to the first level of entries the map * @param item Iterator to the second level of entries in the map + * @param silent If true, doesn't send an expiry SNOTICE. */ - void ExpireLine(ContainerIter container, LookupIter item); + void ExpireLine(ContainerIter container, LookupIter item, bool silent = false); /** Apply any new lines that are pending to be applied. * This will only apply lines in the pending_lines list, to save on @@ -533,6 +534,6 @@ class CoreExport XLineManager */ void InvokeStats(const std::string& type, unsigned int numeric, Stats::Context& stats); - /** Clears any XLines which were added by the server configuration. */ - void ClearConfigLines(); + /** Expire X-lines which were added by the server configuration and have been removed. */ + void ExpireRemovedConfigLines(const std::string& type, const insp::flat_set<std::string>& configlines); }; |