summaryrefslogtreecommitdiff
path: root/src/user_resolver.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-19 19:12:43 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-19 19:12:43 +0000
commit12427e75fe175fe7a62f388281dd7ab5100c9dda (patch)
treedde95798e65c424b74e0ce9682ebda4dd1dfa419 /src/user_resolver.cpp
parent5865b900cd950755bee1f7001552951d99529d4d (diff)
Convert connection::host
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9768 e03df62e-2008-0410-955e-edbf42e46eb7
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 b962be781..8dec4c541 100644
--- a/src/user_resolver.cpp
+++ b/src/user_resolver.cpp
@@ -71,13 +71,13 @@ void UserResolver::OnLookupComplete(const std::string &result, unsigned int ttl,
if ((this->bound_user->registered != REG_ALL) && (!this->bound_user->dns_done))
{
/* Hostnames starting with : are not a good thing (tm) */
- if (*(hostname.c_str()) == ':')
+ if (hostname[0] == ':')
hostname.insert(0, "0");
this->bound_user->WriteServ("NOTICE Auth :*** Found your hostname (%s)%s", hostname.c_str(), (cached ? " -- cached" : ""));
this->bound_user->dns_done = true;
this->bound_user->dhost.assign(hostname, 0, 64);
- strlcpy(this->bound_user->host, hostname.c_str(),64);
+ this->bound_user->host.assign(hostname, 0, 64);
/* Invalidate cache */
this->bound_user->InvalidateCache();
}