summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-02 20:09:20 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-02 20:09:20 +0000
commit7af42fd63e09131bbd24636f4c6d631049427d2c (patch)
treebdf90744ad9b6657e5a48d98c90ce6b5401f445b /src
parentd046263d7577521a10f40296ea4a574fded1d821 (diff)
Fixes for dns queueing
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@955 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/dnsqueue.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp
index 58d55c1a5..043ee8d4f 100644
--- a/src/dnsqueue.cpp
+++ b/src/dnsqueue.cpp
@@ -229,7 +229,9 @@ public:
}
else
{
- usr->dns_done = true;
+ usr = Find(u);
+ if (usr)
+ usr->dns_done = true;
return true;
}
}
@@ -240,9 +242,7 @@ public:
{
userrec* usr = Find(u);
if (usr)
- {
return usr->fd;
- }
else return 0;
}
};
@@ -283,7 +283,6 @@ void dns_poll()
dnsq[j].Reset();
}
}
- else dnsq[j].Reset();
}
}