aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/extra/m_ldap.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-12-03 13:37:42 +0000
committerGravatar Sadie Powell2021-12-03 13:37:42 +0000
commit2466c048e26c09461b4ced2a9dfcf6d87f0e1323 (patch)
treea4575894c6945acef81eb3dd91a206879dbec2ac /src/modules/extra/m_ldap.cpp
parentFix a bunch of cases where module types were not marked as final. (diff)
downloadinspircd++-2466c048e26c09461b4ced2a9dfcf6d87f0e1323.tar.gz
inspircd++-2466c048e26c09461b4ced2a9dfcf6d87f0e1323.tar.bz2
inspircd++-2466c048e26c09461b4ced2a9dfcf6d87f0e1323.zip
Consistently use `!foo` instead of `foo == NULL`.
Diffstat (limited to 'src/modules/extra/m_ldap.cpp')
-rw-r--r--src/modules/extra/m_ldap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/extra/m_ldap.cpp b/src/modules/extra/m_ldap.cpp
index 65aca4348..fd3a40148 100644
--- a/src/modules/extra/m_ldap.cpp
+++ b/src/modules/extra/m_ldap.cpp
@@ -370,7 +370,7 @@ class LDAPService final
void Search(LDAPInterface* i, const std::string& base, const std::string& filter) override
{
- if (i == NULL)
+ if (!i)
throw LDAPException("No interface");
LDAPSearch* s = new LDAPSearch(this, i, base, searchscope, filter);
@@ -413,7 +413,7 @@ class LDAPService final
return;
}
- if (req->message == NULL)
+ if (!req->message)
{
return;
}