From 6ed5040dd9f493b8149fc24c84fdb9494d6ff01c Mon Sep 17 00:00:00 2001 From: Kyle Fuller Date: Fri, 7 Oct 2011 11:30:31 +0100 Subject: [PATCH] identfile: Improve the debug messages The new debug messages allow us to see when the identfile is unlocked Conflicts: modules/identfile.cpp --- modules/identfile.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/identfile.cpp b/modules/identfile.cpp index 05a61be9..9a627258 100644 --- a/modules/identfile.cpp +++ b/modules/identfile.cpp @@ -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(); } }