mirror of
https://github.com/znc/znc.git
synced 2026-08-08 01:43:03 +02:00
Remove CZNC::GetUser()
CZNC::FindUser() does the same thing and we don't need two of these. GetUser() was removed because FindUser() is used more than GetUser(). Thanks to Sthebig for noticing this. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2046 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+1
-1
@@ -629,7 +629,7 @@ void CAuthBase::RefuseLogin(const CString& sReason) {
|
||||
if (!m_pSock)
|
||||
return;
|
||||
|
||||
CUser* pUser = CZNC::Get().GetUser(GetUsername());
|
||||
CUser* pUser = CZNC::Get().FindUser(GetUsername());
|
||||
|
||||
// If the username is valid, notify that user that someone tried to
|
||||
// login. Use sReason because there are other reasons than "wrong
|
||||
|
||||
Reference in New Issue
Block a user