Skip to content
Browse files

identfile: Improve the debug messages

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

Conflicts:

	modules/identfile.cpp
  • Loading branch information...
1 parent 292f921 commit 6ed5040dd9f493b8149fc24c84fdb9494d6ff01c @kylef kylef committed with psychon
Showing with 4 additions and 3 deletions.
  1. +4 −3 modules/identfile.cpp
View
7 modules/identfile.cpp
@@ -98,6 +98,10 @@ class CIdentFileModule : public CGlobalModule {
}
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 @@ class CIdentFileModule : public CGlobalModule {
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();
}
}

0 comments on commit 6ed5040

Please sign in to comment.
Something went wrong with that request. Please try again.