Permalink
Browse files

Fix debug output of identfile.

  • Loading branch information...
DarthGandalf committed Apr 14, 2012
1 parent b496b28 commit 4e16e9f80eb743d99eb1d2e15f430159d76bf6d3
Showing with 4 additions and 2 deletions.
  1. +4 −2 modules/identfile.cpp
View
@@ -61,6 +61,8 @@ class CIdentFileModule : public CModule {
PutModule("m_pIRCSock = " + CString((long long)m_pIRCSock));
if (m_pIRCSock) {
PutModule("user/network - " + m_pIRCSock->GetNetwork()->GetUser()->GetUserName() + "/" + m_pIRCSock->GetNetwork()->GetName());
+ } else {
+ PutModule("identfile is free");
}
}
@@ -123,8 +125,8 @@ class CIdentFileModule : public CModule {
}
void ReleaseISpoof() {
- DEBUG("Releasing ident spoof for user/network [" + (m_pUser ? m_pUser->GetUserName() : "<no user>") + "/" +
- (m_pNetwork ? m_pNetwork->GetName() : "<no network>") + "]");
+ DEBUG("Releasing ident spoof for user/network [" + (m_pIRCSock ? m_pIRCSock->GetNetwork()->GetUser()->GetUserName() + "/" +
+ m_pIRCSock->GetNetwork()->GetName() : "<no user/network>") + "]");
SetIRCSock(NULL);

0 comments on commit 4e16e9f

Please sign in to comment.