mirror of
https://github.com/znc/znc.git
synced 2026-08-06 17:03:14 +02:00
autoop: Don't answer on too short challenges
Thanks to SilverLeo for this patch. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@960 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -431,6 +431,11 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
if (sChallenge.length() != 32) {
|
||||
PutModule("WARNING! [" + Nick.GetHostMask() + "] sent an invalid challenge.");
|
||||
return false;
|
||||
}
|
||||
|
||||
CString sResponse = pUser->GetUserKey() + "::" + sChallenge;
|
||||
PutIRC("NOTICE " + Nick.GetNick() + " :!ZNCAO RESPONSE " + sResponse.MD5());
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user