summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-04-28 14:52:50 +0200
committerAttila Molnar <attilamolnar@hush.com>2015-04-28 14:52:50 +0200
commit39cafd84080182a381319927ed07f5db1ac8d928 (patch)
treea9d62bf002aa6eb2b177af4dc74f605f0e22afab
parentbd1471bc08be28bc2554d35fdaeb078338b14266 (diff)
m_servprotect Remove pointless compare of src and dst from OnWhoisLine handler
-rw-r--r--src/modules/m_servprotect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_servprotect.cpp b/src/modules/m_servprotect.cpp
index 26453020f..340706142 100644
--- a/src/modules/m_servprotect.cpp
+++ b/src/modules/m_servprotect.cpp
@@ -121,7 +121,7 @@ class ModuleServProtectMode : public Module
ModResult OnWhoisLine(User* src, User* dst, int &numeric, std::string &text) CXX11_OVERRIDE
{
- return ((src != dst) && (numeric == 319) && dst->IsModeSet(bm)) ? MOD_RES_DENY : MOD_RES_PASSTHRU;
+ return ((numeric == 319) && dst->IsModeSet(bm)) ? MOD_RES_DENY : MOD_RES_PASSTHRU;
}
};