From e0f4fad2ff2a068868f9de1cbab50415a00b1ba2 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. --- modules/identfile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/identfile.cpp b/modules/identfile.cpp index 727c7c5a..c5778ba0 100644 --- a/modules/identfile.cpp +++ b/modules/identfile.cpp @@ -99,7 +99,8 @@ public: } void ReleaseISpoof() { - DEBUG("Releasing ident spoof for user/network [" + m_pUser->GetUserName() + "/" + m_pNetwork->GetName() + "]"); + DEBUG("Releasing ident spoof for user/network [" + (m_pUser ? m_pUser->GetUserName() : "") + "/" + + (m_pNetwork ? m_pNetwork->GetName() : "") + "]"); m_pIRCSock = NULL;