void ReadResponse()
{
- ServerInstance->Log(DEBUG,"ReadResponse()");
-
/* We don't really need to buffer for incomplete replies here, since IDENT replies are
* extremely short - there is *no* sane reason it'd be in more than one packet
*/
*/
if (recvresult < 3)
{
+ Close();
done = true;
return;
}
+ ServerInstance->Log(DEBUG,"ReadResponse()");
+
irc::sepstream sep(ibuf, ':');
std::string token;
for (int i = 0; sep.GetToken(token); i++)
ServerInstance->Log(DEBUG, "Has ident_socket");
+ time_t compare = isock->age;
+ compare += RequestTimeout;
+
/* Check for timeout of the socket */
- if (isock->age + RequestTimeout > ServerInstance->Time() && !isock->HasResult())
+ if (ServerInstance->Time() >= compare)
{
/* Ident timeout */
user->WriteServ("NOTICE Auth :*** Ident request timed out.");
}
};
-MODULE_INIT(ModuleIdent);
+MODULE_INIT(ModuleIdent)