From bed84ae400fc3ea20ed8c078ca50faf4e006f8a6 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 22 Oct 2019 22:27:07 +0100 Subject: Fix some compiler errors in core_hostname_lookup. No thanks to SourceTree's diff view for causing this. --- src/coremods/core_hostname_lookup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/coremods') 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)); } }; -- cgit v1.2.3