summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_ident.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp
index 9a3c595a6..144a3bb53 100644
--- a/src/modules/m_ident.cpp
+++ b/src/modules/m_ident.cpp
@@ -270,8 +270,6 @@ class IdentRequestSocket : public EventHandler
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
*/
@@ -283,10 +281,13 @@ class IdentRequestSocket : public EventHandler
*/
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++)