diff options
| author | 2006-08-09 19:25:31 +0000 | |
|---|---|---|
| committer | 2006-08-09 19:25:31 +0000 | |
| commit | 48262da087538c38b91bf3a1a51ffaa5e61e502f (patch) | |
| tree | 2f2fe843c29362f47bf2b4f1d1ac34564176fbf3 /src/dns.cpp | |
| parent | userrec and chanrec now have their own independent pointer back to their 'cre... (diff) | |
Change some resolver stuff.
OM, THIS STILL WONT COMPILE! Error on the same line
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4821 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/dns.cpp')
| -rw-r--r-- | src/dns.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/dns.cpp b/src/dns.cpp index 5e6499dc0..f7a2d62e2 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -43,9 +43,6 @@ using namespace std; #include "socketengine.h" #include "configreader.h" -/* We need these */ -extern InspIRCd* ServerInstance; - /* Master file descriptor */ int DNS::MasterSocket; @@ -242,7 +239,7 @@ int DNS::GetMasterSocket() } /* Initialise the DNS UDP socket so that we can send requests */ -DNS::DNS() +DNS::DNS(InspIRCd* Instance) : ServerInstance(Instance) { insp_inaddr addr; @@ -834,7 +831,7 @@ DNS::~DNS() } /* High level abstraction of dns used by application at large */ -Resolver::Resolver(const std::string &source, QueryType qt) : input(source), querytype(qt) +Resolver::Resolver(InspIRCd* Instance, const std::string &source, QueryType qt) : ServerInstance(Instance), input(source), querytype(qt) { insp_inaddr binip; |
