diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-21 16:11:27 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-21 16:11:27 +0000 |
commit | 7ef7a13f3fc0a75f9ca4d55903024d63a4821634 (patch) | |
tree | e1f3e7057ff146849af84e8ac2e9a49d212d9102 /src | |
parent | acfe8c58f6fc968368c6f9f1953f7cd552029246 (diff) |
Because m_filter reads definitions from the conf, unlike rline, when we see our engine via OnLoadModule we must do a partial rehash to get these lines from the conf and ensure theyre applied, because they would have failed to apply initially.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10583 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_filter.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_filter.cpp b/src/modules/m_filter.cpp index 50c66d1a1..80f09a2de 100644 --- a/src/modules/m_filter.cpp +++ b/src/modules/m_filter.cpp @@ -449,8 +449,11 @@ void FilterBase::OnLoadModule(Module* mod, const std::string& name) std::string rxname = RegexNameRequest(this, mod).Send(); if (rxname == RegexEngine) { - ServerInstance->SNO->WriteToSnoMask('A', "Filter now using engine '%s'", RegexEngine.c_str()); rxengine = mod; + /* Force a rehash to make sure that any filters that couldnt be applied from the conf + * on startup or on load are applied right now. + */ + OnRehash(NULL, ""); } } } |