mirror of
https://github.com/znc/znc.git
synced 2026-06-21 18:45:18 +02:00
Fix crash in webadmin when adding a new user.
My recent patch, which added ability to put arbitrary bindhost when global list is missing, broke it... Thanks to Jord for reporting it.
This commit is contained in:
@@ -970,8 +970,10 @@ public:
|
||||
Tmpl["BindHostEdit"] = "true";
|
||||
const VCString& vsBindHosts = CZNC::Get().GetBindHosts();
|
||||
if (vsBindHosts.empty()) {
|
||||
Tmpl["BindHost"] = pUser->GetBindHost();
|
||||
Tmpl["DCCBindHost"] = pUser->GetDCCBindHost();
|
||||
if (pUser) {
|
||||
Tmpl["BindHost"] = pUser->GetBindHost();
|
||||
Tmpl["DCCBindHost"] = pUser->GetDCCBindHost();
|
||||
}
|
||||
} else {
|
||||
bool bFoundBindHost = false;
|
||||
bool bFoundDCCBindHost = false;
|
||||
|
||||
Reference in New Issue
Block a user