summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-09 20:14:26 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-09 20:14:26 +0000
commit3020afbbedca81d14bc098e45b02c27a14625a1c (patch)
treedb08161b2172ac3f7285da1ce0bdbdd46bcf541f /src/modules
parente2b1ad588d34c3d1d0e4e330acef7ca177b13daf (diff)
Fix passing wrong instance to resolver
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4824 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_spanningtree.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 2eb46d420..003a4868d 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -69,6 +69,7 @@ class ModuleSpanningTree;
static ModuleSpanningTree* TreeProtocolModule;
extern InspIRCd* ServerInstance;
+
extern std::vector<Module*> modules;
extern std::vector<ircd_module*> factory;
extern int MODCOUNT;
@@ -3081,7 +3082,7 @@ class ServernameResolver : public Resolver
*/
Link MyLink;
public:
- ServernameResolver(const std::string &hostname, Link x) : Resolver(ServerInstance, hostname, DNS_QUERY_FORWARD), MyLink(x)
+ ServernameResolver(InspIRCd* Instance, const std::string &hostname, Link x) : Resolver(Instance, hostname, DNS_QUERY_FORWARD), MyLink(x)
{
/* Nothing in here, folks */
}
@@ -3122,7 +3123,7 @@ class SecurityIPResolver : public Resolver
private:
Link MyLink;
public:
- SecurityIPResolver(const std::string &hostname, Link x) : Resolver(ServerInstance, hostname, DNS_QUERY_FORWARD), MyLink(x)
+ SecurityIPResolver(InspIRCd* Instance, const std::string &hostname, Link x) : Resolver(Instance, hostname, DNS_QUERY_FORWARD), MyLink(x)
{
}
@@ -3371,7 +3372,7 @@ void ReadConfiguration(bool rebind)
{
try
{
- SecurityIPResolver* sr = new SecurityIPResolver(L.IPAddr, L);
+ SecurityIPResolver* sr = new SecurityIPResolver(ServerInstance, L.IPAddr, L);
Srv->AddResolver(sr);
}
catch (ModuleException& e)
@@ -3787,7 +3788,7 @@ class ModuleSpanningTree : public Module
{
try
{
- ServernameResolver* snr = new ServernameResolver(x->IPAddr, *x);
+ ServernameResolver* snr = new ServernameResolver(ServerInstance,x->IPAddr, *x);
Srv->AddResolver(snr);
}
catch (ModuleException& e)
@@ -3868,7 +3869,7 @@ class ModuleSpanningTree : public Module
{
try
{
- ServernameResolver* snr = new ServernameResolver(x->IPAddr, *x);
+ ServernameResolver* snr = new ServernameResolver(ServerInstance, x->IPAddr, *x);
Srv->AddResolver(snr);
}
catch (ModuleException& e)