From 7ef7a13f3fc0a75f9ca4d55903024d63a4821634 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 21 Sep 2008 16:11:27 +0000 Subject: 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 --- src/modules/m_filter.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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, ""); } } } -- cgit v1.2.3