Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: znc/znc
base: 1925737b84d3
...
head fork: znc/znc
compare: 2cfc6ce979d9
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Showing with 6 additions and 2 deletions.
  1. +6 −2 modules/controlpanel.cpp
View
8 modules/controlpanel.cpp
@@ -478,8 +478,12 @@ class CAdminMod : public CModule {
pNetwork->SetRealName(sValue);
PutModule("RealName = " + pNetwork->GetRealName());
} else if (sVar.Equals("bindhost")) {
- pNetwork->SetBindHost(sValue);
- PutModule("BindHost = " + pNetwork->GetBindHost());
+ if(!pUser->DenySetBindHost() || m_pUser->IsAdmin()) {
+ pNetwork->SetBindHost(sValue);
+ PutModule("BindHost = " + sValue);
+ } else {
+ PutModule("Access denied!");
+ }
} else if (sVar.Equals("floodrate")) {
pNetwork->SetFloodRate(sValue.ToDouble());
PutModule("FloodRate = " + CString(pNetwork->GetFloodRate()));

No commit comments for this range

Something went wrong with that request. Please try again.