mirror of
https://github.com/znc/znc.git
synced 2026-08-10 10:52:59 +02:00
Add DenySetVHost patch from Veit Wahlich aka cru
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@925 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -982,6 +982,9 @@ bool CZNC::ParseConfig(const CString& sConfig) {
|
||||
} else if (sName.CaseCmp("Admin") == 0) {
|
||||
pUser->SetAdmin((sValue.CaseCmp("TRUE") == 0));
|
||||
continue;
|
||||
} else if (sName.CaseCmp("DenySetVHost") == 0) {
|
||||
pUser->SetDenySetVHost((sValue.CaseCmp("TRUE") == 0));
|
||||
continue;
|
||||
} else if (sName.CaseCmp("StatusPrefix") == 0) {
|
||||
if (!pUser->SetStatusPrefix(sValue)) {
|
||||
CUtils::PrintError("Invalid StatusPrefix [" + sValue + "] Must be 1-5 chars, no spaces.");
|
||||
|
||||
Reference in New Issue
Block a user