From ea19e3f3dc89e72bd6b272f46c73fc53875f2ba4 Mon Sep 17 00:00:00 2001 From: Kyle Fuller Date: Sat, 4 Jun 2011 17:00:10 +0100 Subject: [PATCH] Improve the debug messages from identfile module --- modules/identfile.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/identfile.cpp b/modules/identfile.cpp index 78cef08e..f7111b66 100644 --- a/modules/identfile.cpp +++ b/modules/identfile.cpp @@ -90,7 +90,7 @@ public: 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 @@ public: 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; }