aboutsummaryrefslogtreecommitdiffstats
path: root/src/user_resolver.cpp
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-04-16 16:03:32 -0500
committerGravatar Daniel De Graaf2010-08-03 17:32:42 -0400
commitbd722def02fa27e69939d71d00b0af12adaea1ca (patch)
tree3e030fd91a5991e1213807907c059f6b54de7d48 /src/user_resolver.cpp
parentGet rid of char* argument for channel name (diff)
Get rid of more useless assign() invocations
Diffstat (limited to 'src/user_resolver.cpp')
-rw-r--r--src/user_resolver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/user_resolver.cpp b/src/user_resolver.cpp
index 156bb9828..d230de1a9 100644
--- a/src/user_resolver.cpp
+++ b/src/user_resolver.cpp
@@ -87,8 +87,8 @@ void UserResolver::OnLookupComplete(const std::string &result, unsigned int ttl,
bound_user->WriteServ("NOTICE Auth :*** Found your hostname (%s)%s", hostname.c_str(), (cached ? " -- cached" : ""));
bound_user->dns_done = true;
- bound_user->dhost.assign(hostname, 0, 64);
- bound_user->host.assign(hostname, 0, 64);
+ bound_user->dhost = hostname;
+ bound_user->host = hostname;
/* Invalidate cache */
bound_user->InvalidateCache();
}