summaryrefslogtreecommitdiff
path: root/src/modules/m_ident.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-21 19:41:34 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-21 19:41:34 +0000
commitf561b32be27117fa16f7123adfd4e767e9e17561 (patch)
treea77d1a8f6ea31bf8588a041087014a0b2b2c6ec8 /src/modules/m_ident.cpp
parentaa3dc8c472dd2606a38587fdd1065ba66d0b6d27 (diff)
Minor tweak to avoid a storm of redundant read events. This isnt the fix, i dont think, but its needed anyway
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8276 e03df62e-2008-0410-955e-edbf42e46eb7
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 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++)