summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/dns.h12
-rw-r--r--include/users.h1
2 files changed, 10 insertions, 3 deletions
diff --git a/include/dns.h b/include/dns.h
index f66d2d3c4..ebe628bb9 100644
--- a/include/dns.h
+++ b/include/dns.h
@@ -40,6 +40,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "socket.h"
#include "base.h"
+class InspIRCd;
+
/**
* Result status, used internally
*/
@@ -133,6 +135,10 @@ class Resolver : public Extensible
{
protected:
/**
+ * Pointer to creator
+ */
+ InspIRCd* ServerInstance;
+ /**
* The input data, either a host or an IP address
*/
std::string input;
@@ -180,7 +186,7 @@ class Resolver : public Extensible
* the network being down. This will also be thrown if an invalid IP address is
* passed when resolving a 'PTR' record.
*/
- Resolver(const std::string &source, QueryType qt);
+ Resolver(InspIRCd* Instance, const std::string &source, QueryType qt);
/**
* The default destructor does nothing.
*/
@@ -217,6 +223,8 @@ class DNS : public Extensible
{
private:
+ InspIRCd* ServerInstance;
+
/**
* The maximum value of a dns request id,
* 16 bits wide, 0xFFFF.
@@ -340,7 +348,7 @@ class DNS : public Extensible
* The constructor initialises the dns socket,
* and clears the request lists.
*/
- DNS();
+ DNS(InspIRCd* Instance);
/**
* Destructor
diff --git a/include/users.h b/include/users.h
index 8e3fddfcd..d0ed021a6 100644
--- a/include/users.h
+++ b/include/users.h
@@ -78,7 +78,6 @@ class UserResolver : public Resolver
userrec* bound_user;
int bound_fd;
bool fwd;
- InspIRCd* ServerInstance;
public:
UserResolver(InspIRCd* Instance, userrec* user, std::string to_resolve, bool forward);