From f9eb4c966f3c20ac5767edc19f4f8803b17e4147 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 7 Jan 2007 20:08:49 +0000 Subject: Fix m_testcommand which tries to use an undefined pointer as ServerInstance git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6248 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_testcommand.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_testcommand.cpp b/src/modules/m_testcommand.cpp index 640fd898e..00988ff96 100644 --- a/src/modules/m_testcommand.cpp +++ b/src/modules/m_testcommand.cpp @@ -26,7 +26,7 @@ class MyV6Resolver : public Resolver { bool fw; public: - MyV6Resolver(Module* me, const std::string &source, bool forward) : Resolver(ServerInstance, source, forward ? DNS_QUERY_AAAA : DNS_QUERY_PTR6, me) + MyV6Resolver(InspIRCd* Instance, Module* me, const std::string &source, bool forward) : Resolver(Instance, source, forward ? DNS_QUERY_AAAA : DNS_QUERY_PTR6, me) { fw = forward; } @@ -60,9 +60,9 @@ class cmd_woot : public command_t * do it for us as required.*/ try { - MyV6Resolver* r = new MyV6Resolver(Creator, "shake.stacken.kth.se", true); + MyV6Resolver* r = new MyV6Resolver(ServerInstance, Creator, "shake.stacken.kth.se", true); ServerInstance->AddResolver(r); - r = new MyV6Resolver(Creator, "2001:6b0:1:ea:202:a5ff:fecd:13a6", false); + r = new MyV6Resolver(ServerInstance, Creator, "2001:6b0:1:ea:202:a5ff:fecd:13a6", false); ServerInstance->AddResolver(r); } catch (ModuleException& e) -- cgit v1.2.3