diff options
| author | 2015-01-10 15:36:13 +0100 | |
|---|---|---|
| committer | 2015-01-10 15:36:13 +0100 | |
| commit | 682ab97e473b5325f5c5e0d0747a44df1aa33b9d (patch) | |
| tree | fe48ae12b13eb286fcaf8fd4af581aca259f5848 /src/modules/m_delayjoin.cpp | |
| parent | Reduce std::string::substr() usage (diff) | |
| download | inspircd++-682ab97e473b5325f5c5e0d0747a44df1aa33b9d.tar.gz inspircd++-682ab97e473b5325f5c5e0d0747a44df1aa33b9d.tar.bz2 inspircd++-682ab97e473b5325f5c5e0d0747a44df1aa33b9d.zip | |
Remove some unnecessary NULL checks
Diffstat (limited to 'src/modules/m_delayjoin.cpp')
| -rw-r--r-- | src/modules/m_delayjoin.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/modules/m_delayjoin.cpp b/src/modules/m_delayjoin.cpp index 2474cd6ad..7e800572e 100644 --- a/src/modules/m_delayjoin.cpp +++ b/src/modules/m_delayjoin.cpp @@ -138,10 +138,6 @@ void ModuleDelayJoin::OnBuildNeighborList(User* source, IncludeChanList& include void ModuleDelayJoin::OnText(User* user, void* dest, int target_type, const std::string &text, char status, CUList &exempt_list) { - /* Server origin */ - if (!user) - return; - if (target_type != TYPE_CHANNEL) return; @@ -165,7 +161,7 @@ void ModuleDelayJoin::OnText(User* user, void* dest, int target_type, const std: /* make the user visible if he receives any mode change */ ModResult ModuleDelayJoin::OnRawMode(User* user, Channel* channel, ModeHandler* mh, const std::string& param, bool adding) { - if (!user || !channel || param.empty()) + if (!channel || param.empty()) return MOD_RES_PASSTHRU; // If not a prefix mode then we got nothing to do here |
