mirror of
https://github.com/znc/znc.git
synced 2026-07-02 16:02:02 +02:00
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:
committed by
Uli Schlachter
parent
292f921cad
commit
6ed5040dd9
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user