summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-10-22 22:27:07 +0100
committerPeter Powell <petpow@saberuk.com>2019-10-22 22:27:07 +0100
commitbed84ae400fc3ea20ed8c078ca50faf4e006f8a6 (patch)
tree922cdd91a2858ea3c61017df7bc07947d1d756cb /src
parent409321b5cf0fdfa69b54ba2f371b57de2e1e1452 (diff)
Fix some compiler errors in core_hostname_lookup.
No thanks to SourceTree's diff view for causing this.
Diffstat (limited to 'src')
-rw-r--r--src/coremods/core_hostname_lookup.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coremods/core_hostname_lookup.cpp b/src/coremods/core_hostname_lookup.cpp
index fc01db157..7bc074a3d 100644
--- a/src/coremods/core_hostname_lookup.cpp
+++ b/src/coremods/core_hostname_lookup.cpp
@@ -74,7 +74,7 @@ class UserResolver : public DNS::Request
const DNS::ResourceRecord* ans_record = r->FindAnswerOfType(this->question.type);
if (ans_record == NULL)
{
- HandleError(user, "Could not resolve your hostname: No " + this->manager->GetTypeStr(this->question.type) + " records found");
+ HandleError(bound_user, "Could not resolve your hostname: No " + this->manager->GetTypeStr(this->question.type) + " records found");
return;
}
@@ -151,7 +151,7 @@ class UserResolver : public DNS::Request
{
LocalUser* bound_user = IS_LOCAL(ServerInstance->FindUUID(uuid));
if (bound_user)
- HandleError("Could not resolve your hostname: " + this->manager->GetErrorStr(query->error));
+ HandleError(bound_user, "Could not resolve your hostname: " + this->manager->GetErrorStr(query->error));
}
};