From c440038736f749a56dbac1badee5b2f099286117 Mon Sep 17 00:00:00 2001 From: peavey Date: Tue, 6 Oct 2009 19:27:53 +0000 Subject: Make mssql module compile, untested for now. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11807 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_mssql.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/modules/extra/m_mssql.cpp b/src/modules/extra/m_mssql.cpp index 8cd9e2ea7..43d546819 100644 --- a/src/modules/extra/m_mssql.cpp +++ b/src/modules/extra/m_mssql.cpp @@ -50,11 +50,9 @@ Mutex* LoggingMutex; class QueryThread : public SocketThread { private: - ModuleMsSQL* Parent; + ModuleMsSQL* const Parent; public: - QueryThread(ModuleMsSQL* mod) - : SocketThread(si), Parent(mod), { - } + QueryThread(ModuleMsSQL* mod) : Parent(mod) { } ~QueryThread() { } virtual void Run(); virtual void OnNotify(); @@ -508,7 +506,7 @@ class SQLConn : public classbase { SQLConn* sc = (SQLConn*)pContext->parent; LoggingMutex->Lock(); - sc->ServerInstance->Logs->Log("m_mssql", DEBUG, "Message for DB with id: %s -> %s", sc->host.id.c_str(), pMessage->message); + ServerInstance->Logs->Log("m_mssql", DEBUG, "Message for DB with id: %s -> %s", sc->host.id.c_str(), pMessage->message); LoggingMutex->Unlock(); return 0; } @@ -517,7 +515,7 @@ class SQLConn : public classbase { SQLConn* sc = (SQLConn*)pContext->parent; LoggingMutex->Lock(); - sc->ServerInstance->Logs->Log("m_mssql", DEFAULT, "Error for DB with id: %s -> %s", sc->host.id.c_str(), pMessage->message); + ServerInstance->Logs->Log("m_mssql", DEFAULT, "Error for DB with id: %s -> %s", sc->host.id.c_str(), pMessage->message); LoggingMutex->Unlock(); return 0; } -- cgit v1.2.3