From 12737ab4ad61a0d8a908c8a21594c7012e21eb3c Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 11 Aug 2006 01:35:01 +0000 Subject: ConfigReader and FileReader now take InspIRCd* to their constructors git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4865 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules/m_spanningtree.cpp') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 4ff327598..57c1ce406 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1935,7 +1935,7 @@ class TreeSocket : public InspSocket std::deque par; par.push_back(prefix); par.push_back(""); - DoStats(*(params[0].c_str()), source, results); + DoStats(this->Instance, *(params[0].c_str()), source, results); for (size_t i = 0; i < results.size(); i++) { par[1] = "::" + results[i]; @@ -2299,7 +2299,7 @@ class TreeSocket : public InspSocket unsigned long signon = atoi(params[1].c_str()); unsigned long idle = atoi(params[2].c_str()); if ((who_to_send_to) && (IS_LOCAL(who_to_send_to))) - do_whois(who_to_send_to,u,signon,idle,nick_whoised.c_str()); + do_whois(this->Instance,who_to_send_to,u,signon,idle,nick_whoised.c_str()); } else { @@ -3073,12 +3073,12 @@ class ServernameResolver : public Resolver * admin takes the tag away and rehashes while the domain is resolving. */ Link MyLink; - public: + public: ServernameResolver(InspIRCd* Instance, const std::string &hostname, Link x) : Resolver(Instance, hostname, DNS_QUERY_FORWARD), MyLink(x) { /* Nothing in here, folks */ } - + void OnLookupComplete(const std::string &result) { /* Initiate the connection, now that we have an IP to use. @@ -3304,7 +3304,7 @@ std::vector Bindings; void ReadConfiguration(bool rebind) { - Conf = new ConfigReader; + Conf = new ConfigReader(ServerInstance); if (rebind) { for (int j =0; j < Conf->Enumerate("bind"); j++) -- cgit v1.3.1-10-gc9f91