From 3426b12234a0968da611bee47cbbc43ee4e3b5ed Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 6 Sep 2008 03:52:34 +0000 Subject: RegexFactoryRequest sets result to null on construction, so if you direct this Request at a module which doesnt implement it, you predictibly get NULL as a result from Create() rather than a random value git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10402 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_regex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/extra/m_regex.h b/src/modules/extra/m_regex.h index 7670582c3..50e7a4845 100644 --- a/src/modules/extra/m_regex.h +++ b/src/modules/extra/m_regex.h @@ -49,7 +49,7 @@ private: public: Regex* result; - RegexFactoryRequest(Module* Me, Module* Target, const std::string& rx) : Request(Me, Target, "REGEX"), regex(rx) + RegexFactoryRequest(Module* Me, Module* Target, const std::string& rx) : Request(Me, Target, "REGEX"), regex(rx), result(NULL) { } -- cgit v1.2.3