mirror of
https://github.com/znc/znc.git
synced 2026-06-11 01:05:05 +02: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