summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-01 23:09:07 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-01 23:09:07 +0000
commitf44d25e8c3c5cad78c71c3a5e5d3016f241c4c79 (patch)
tree296416a30de5063b34d7dd378f26f993c6372a47
parentbe1e2e4ee5eb8b990692e6f5ae20931abe4c9e3c (diff)
Fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4628 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/users.h5
-rw-r--r--src/users.cpp5
2 files changed, 6 insertions, 4 deletions
diff --git a/include/users.h b/include/users.h
index c81ad988b..9229cbe11 100644
--- a/include/users.h
+++ b/include/users.h
@@ -75,10 +75,7 @@ class UserResolver : public Resolver
userrec* bound_user;
int bound_fd;
public:
- UserResolver(userrec* user, std::string to_resolve, bool forward) : Resolver(to_resolve, forward), bound_user(user)
- {
- this->bound_fd = user->fd;
- }
+ UserResolver(userrec* user, std::string to_resolve, bool forward);
void OnLookupComplete(const std::string &result);
void OnError(ResolverError e);
diff --git a/src/users.cpp b/src/users.cpp
index 58e1f9103..dcc33b22c 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -145,6 +145,11 @@ void userrec::StartDNSLookup()
MyServer->AddResolver(res_reverse);
}
+UserResolver::UserResolver(userrec* user, std::string to_resolve, bool forward) : Resolver(to_resolve, forward), bound_user(user)
+{
+ this->bound_fd = user->fd;
+}
+
void UserResolver::OnLookupComplete(const std::string &result)
{
if ((!this->fwd) && (fd_ref_table[this->bound_fd] == this->bound_user))