From 6b7eb8136bf44abc7d638bc6d4517fc616021922 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 21 Mar 2008 23:33:39 +0000 Subject: Add debug git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9165 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_sasl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/m_sasl.cpp b/src/modules/m_sasl.cpp index 0bc888999..99ed87f50 100644 --- a/src/modules/m_sasl.cpp +++ b/src/modules/m_sasl.cpp @@ -238,6 +238,12 @@ class ModuleSASL : public Module return; User* target = ServerInstance->FindNick((*parameters)[2]); + if (!target) + { + ServerInstance->Logs->Log("m_sasl", DEBUG,"User not found in sasl ENCAP event: %s", (*parameters)[2].c_str()); + return; + } + SaslAuthenticator *sasl; if (!target->GetExt("sasl_authenticator", sasl)) return; -- cgit v1.2.3