mirror of
https://github.com/znc/znc.git
synced 2026-05-06 13:32:36 +02:00
Add * if user supplies no other allowed hosts
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@532 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -931,8 +931,12 @@ CUser* CWebAdminSock::GetNewUser(CString& sPageRet, CUser* pUser) {
|
||||
}
|
||||
|
||||
GetParam("allowedips").Split("\n", vsArgs);
|
||||
for (a = 0; a < vsArgs.size(); a++) {
|
||||
pNewUser->AddAllowedHost(vsArgs[a].Trim_n());
|
||||
if (vsArgs.size()) {
|
||||
for (a = 0; a < vsArgs.size(); a++) {
|
||||
pNewUser->AddAllowedHost(vsArgs[a].Trim_n());
|
||||
}
|
||||
} else {
|
||||
pNewUser->AddAllowedHost("*");
|
||||
}
|
||||
|
||||
if (HasParam("ownip")) {
|
||||
|
||||
Reference in New Issue
Block a user