summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-01 23:07:26 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-01 23:07:26 +0000
commitbe1e2e4ee5eb8b990692e6f5ae20931abe4c9e3c (patch)
tree5e515685783d6e7c2f0465004a486e0c77cd7eab /src/users.cpp
parente74bb16a4fcf67a44d1b63bc13d205717a38bb96 (diff)
Fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4627 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index b6317a3f0..58e1f9103 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -48,6 +48,7 @@ extern time_t TIME;
extern userrec* fd_ref_table[MAX_DESCRIPTORS];
extern ServerConfig *Config;
extern user_hash clientlist;
+extern Server* MyServer;
whowas_users whowas;
@@ -141,6 +142,7 @@ void userrec::StartDNSLookup()
{
log(DEBUG,"Commencing forward lookup");
res_reverse = new UserResolver(this, insp_ntoa(this->ip4), false);
+ MyServer->AddResolver(res_reverse);
}
void UserResolver::OnLookupComplete(const std::string &result)
@@ -149,7 +151,8 @@ void UserResolver::OnLookupComplete(const std::string &result)
{
log(DEBUG,"Commencing reverse lookup");
this->bound_user->stored_host = result;
- bound_user->res_reverse = new UserResolver(this->bound_user, result, true);
+ bound_user->res_forward = new UserResolver(this->bound_user, result, true);
+ MyServer->AddResolver(bound_user->res_forward);
}
else if ((this->fwd) && (fd_ref_table[this->bound_fd] == this->bound_user))
{