mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
webadmin: Fix error message on invalid user.
Calling PrintErrorPage twice doesn't work very well. See #1163
This commit is contained in:
@@ -1454,7 +1454,7 @@ public:
|
||||
|
||||
CUser* pNewUser = GetNewUser(WebSock, pUser);
|
||||
if (!pNewUser) {
|
||||
WebSock.PrintErrorPage("Invalid user settings");
|
||||
// GetNewUser already called WebSock.PrintErrorPage()
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user