Skip to content
Browse files

Improve the debug messages from identfile module

  • Loading branch information...
1 parent 797b0a7 commit ea19e3f3dc89e72bd6b272f46c73fc53875f2ba4 @kylef kylef committed Jun 4, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 modules/identfile.cpp
View
10 modules/identfile.cpp
@@ -90,7 +90,7 @@ class CIdentFileModule : public CGlobalModule {
sData.Replace("%", m_pUser->GetIdent());
}
- DEBUG("Writing [" + sData + "] to ISpoofFile [" + m_pISpoofLockFile->GetLongName() + "]");
+ DEBUG("Writing [" + sData + "] to ident spoof file [" + m_pISpoofLockFile->GetLongName() + "] for user [" + m_pUser->GetUserName() + "]");
m_pISpoofLockFile->Write(sData + "\n");
@@ -125,14 +125,14 @@ class CIdentFileModule : public CGlobalModule {
virtual EModRet OnIRCConnecting(CIRCSock *pIRCSock) {
if (m_pISpoofLockFile != NULL) {
- DEBUG("Aborting connection, ISpoofLockFile exists");
- PutModule("Aborting connection, ISpoofLockFile exists");
+ DEBUG("Aborting connection, ident spoof lock file exists");
+ PutModule("Aborting connection, another user is currently connecting and using the ident spoof file");
return HALTCORE;
}
if (!WriteISpoof()) {
- DEBUG("ISpoof [" + GetNV("File") + "] could not be written");
- PutModule("ISpoof [" + GetNV("File") + "] could not be written, retrying...");
+ DEBUG("identfile [" + GetNV("File") + "] could not be written");
+ PutModule("[" + GetNV("File") + "] could not be written, retrying...");
return HALTCORE;
}

0 comments on commit ea19e3f

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