diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-06 19:27:53 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-06 19:27:53 +0000 |
commit | c440038736f749a56dbac1badee5b2f099286117 (patch) | |
tree | e5f361149e753613cd56ff9f122e0342726553d5 /src | |
parent | e2ccd93b0f1d2605fdc1800a2c96111d4a7ca139 (diff) |
Make mssql module compile, untested for now.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11807 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/extra/m_mssql.cpp | 10 |
1 files 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; } |