summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-03-21 23:33:39 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-03-21 23:33:39 +0000
commit6b7eb8136bf44abc7d638bc6d4517fc616021922 (patch)
treea3a08a4ff52898345d1235673ef38b0a72476a5c /src/modules
parent82d7d838a801ca923dca340f6ab50ad57894d1e9 (diff)
Add debug
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9165 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_sasl.cpp6
1 files changed, 6 insertions, 0 deletions
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;