From 39cafd84080182a381319927ed07f5db1ac8d928 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 28 Apr 2015 14:52:50 +0200 Subject: [PATCH] m_servprotect Remove pointless compare of src and dst from OnWhoisLine handler --- src/modules/m_servprotect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }; -- 2.39.5