aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_ident.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_ident.cpp')
-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 29a7f6c73..dbd38563c 100644
--- a/src/modules/m_ident.cpp
+++ b/src/modules/m_ident.cpp
@@ -198,8 +198,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
@@ -209,10 +207,13 @@ class IdentRequestSocket : public EventHandler
/* Cant possibly be a valid response shorter than 3 chars */
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++)