From 0ff90ea45197e0ad8f8d3da44e84506198a6eaba Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Fri, 4 Mar 2016 22:24:46 +0000 Subject: [PATCH] Fix error in *controlpanel when setting bindhost of another user. Thanks to Kult for reporting this. --- modules/controlpanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/controlpanel.cpp b/modules/controlpanel.cpp index 4ca0ec8f..ca5cbfa7 100644 --- a/modules/controlpanel.cpp +++ b/modules/controlpanel.cpp @@ -267,7 +267,7 @@ class CAdminMod : public CModule { } else if (sVar == "bindhost") { if(!pUser->DenySetBindHost() || GetUser()->IsAdmin()) { - if (sValue.Equals(GetUser()->GetBindHost())) { + if (sValue.Equals(pUser->GetBindHost())) { PutModule("This bind host is already set!"); return; }