]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_pgsql.cpp
Change some resolver stuff.
[user/henk/code/inspircd.git] / src / modules / extra / m_pgsql.cpp
index b9eb309db65030ebb04e0f191d8d8b38d7b77689..51217bb715d5a95ef59e644d42c249721c8a7b44 100644 (file)
@@ -96,7 +96,7 @@ class SQLresolver : public Resolver
        ModulePgSQL* mod;
  public:
        SQLresolver(ModulePgSQL* m, Server* srv, const SQLhost& hi)
-       : Resolver(hi.host, DNS_QUERY_FORWARD), host(hi), mod(m)
+       : Resolver(ServerInstance, hi.host, DNS_QUERY_FORWARD), host(hi), mod(m)
        {
        }
 
@@ -595,7 +595,7 @@ public:
                SQLConn* newconn;
                                
                /* The conversion succeeded, we were given an IP and we can give it straight to SQLConn */
-               newconn = new SQLConn(this, Srv, hi);
+               newconn = new SQLConn(ServerInstance, this, Srv, hi);
                                
                connections.insert(std::make_pair(hi.id, newconn));
        }