diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-01-09 13:33:33 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-01-09 13:33:33 +0100 |
commit | 36f12984d3010bfad69de0c37a3203b0c471521c (patch) | |
tree | de3607e952635ae6baadb38d8e066e19f910d9a2 /src/modules/m_silence.cpp | |
parent | 833ae95adc3d8e0b7ba0e82af4cbd173bb98431e (diff) |
Stop null checking pointers that are always valid
Diffstat (limited to 'src/modules/m_silence.cpp')
-rw-r--r-- | src/modules/m_silence.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/modules/m_silence.cpp b/src/modules/m_silence.cpp index 03d2b7953..fe7418621 100644 --- a/src/modules/m_silence.cpp +++ b/src/modules/m_silence.cpp @@ -338,10 +338,7 @@ class ModuleSilence : public Module else if (target_type == TYPE_CHANNEL) { Channel* chan = (Channel*)dest; - if (chan) - { - this->OnBuildExemptList(msgtype, chan, user, status, exempt_list, ""); - } + this->OnBuildExemptList(msgtype, chan, user, status, exempt_list, ""); } return MOD_RES_PASSTHRU; } @@ -353,10 +350,6 @@ class ModuleSilence : public Module ModResult MatchPattern(User* dest, User* source, int pattern) { - /* Server source */ - if (!source || !dest) - return MOD_RES_ALLOW; - silencelist* sl = cmdsilence.ext.get(dest); if (sl) { |