mirror of
https://github.com/znc/znc.git
synced 2026-08-05 16:33:46 +02:00
Fix error in *controlpanel when setting bindhost of another user.
Thanks to Kult for reporting this.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user