identfile: Improve the debug messages

The new debug messages allow us to see when the identfile is unlocked

Conflicts:

	modules/identfile.cpp
This commit is contained in:
Kyle Fuller
2011-10-07 11:30:31 +01:00
committed by Uli Schlachter
parent 292f921cad
commit 6ed5040dd9
+4 -3
View File
@@ -98,6 +98,10 @@ public:
}
void ReleaseISpoof() {
DEBUG("Releasing ident spoof for user [" + m_pUser->GetUserName() + "]");
m_pIRCSock = NULL;
if (m_pISpoofLockFile != NULL) {
if (m_pISpoofLockFile->Seek(0) && m_pISpoofLockFile->Truncate()) {
m_pISpoofLockFile->Write(m_sOrigISpoof);
@@ -142,21 +146,18 @@ public:
virtual void OnIRCConnected() {
if (m_pIRCSock == m_pUser->GetIRCSock()) {
m_pIRCSock = NULL;
ReleaseISpoof();
}
}
virtual void OnIRCConnectionError(CIRCSock *pIRCSock) {
if (m_pIRCSock == pIRCSock) {
m_pIRCSock = NULL;
ReleaseISpoof();
}
}
virtual void OnIRCDisconnected() {
if (m_pIRCSock == m_pUser->GetIRCSock()) {
m_pIRCSock = NULL;
ReleaseISpoof();
}
}