diff options
| author | 2021-12-03 13:37:42 +0000 | |
|---|---|---|
| committer | 2021-12-03 13:37:42 +0000 | |
| commit | 2466c048e26c09461b4ced2a9dfcf6d87f0e1323 (patch) | |
| tree | a4575894c6945acef81eb3dd91a206879dbec2ac /src/modules/m_servprotect.cpp | |
| parent | Fix a bunch of cases where module types were not marked as final. (diff) | |
| download | inspircd++-2466c048e26c09461b4ced2a9dfcf6d87f0e1323.tar.gz inspircd++-2466c048e26c09461b4ced2a9dfcf6d87f0e1323.tar.bz2 inspircd++-2466c048e26c09461b4ced2a9dfcf6d87f0e1323.zip | |
Consistently use `!foo` instead of `foo == NULL`.
Diffstat (limited to 'src/modules/m_servprotect.cpp')
| -rw-r--r-- | src/modules/m_servprotect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_servprotect.cpp b/src/modules/m_servprotect.cpp index feb9aa6ba..3ed739212 100644 --- a/src/modules/m_servprotect.cpp +++ b/src/modules/m_servprotect.cpp @@ -104,7 +104,7 @@ class ModuleServProtectMode final ModResult OnKill(User* src, User* dst, const std::string &reason) override { - if (src == NULL) + if (!src) return MOD_RES_PASSTHRU; if (dst->IsModeSet(bm)) |
