From 75ae156ba2990be0a52e9768e3e2a6589d552ea4 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Fri, 27 Jan 2012 06:37:15 +0700 Subject: [PATCH] Identfile: don't crash when ZNC is shutting down. Thanks to Domin for reporting this. Conflicts: modules/identfile.cpp --- modules/identfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/identfile.cpp b/modules/identfile.cpp index 9a627258..a69020af 100644 --- a/modules/identfile.cpp +++ b/modules/identfile.cpp @@ -98,7 +98,7 @@ public: } void ReleaseISpoof() { - DEBUG("Releasing ident spoof for user [" + m_pUser->GetUserName() + "]"); + DEBUG("Releasing ident spoof for user [" + (m_pUser ? m_pUser->GetUserName() : "") + "]"); m_pIRCSock = NULL;