summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/coremods/core_hostname_lookup.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/coremods/core_hostname_lookup.cpp b/src/coremods/core_hostname_lookup.cpp
index 125fe07f0..8e97d0c23 100644
--- a/src/coremods/core_hostname_lookup.cpp
+++ b/src/coremods/core_hostname_lookup.cpp
@@ -130,7 +130,9 @@ class UserResolver : public DNS::Request
}
else
{
+ bool display_is_real = irc::equals(bound_user->GetDisplayedHost(), bound_user->GetRealHost());
bound_user->WriteNotice("*** Your hostname does not match up with your IP address. Sorry, using your IP address (" + bound_user->GetIPString() + ") instead.");
+ bound_user->ChangeRealHost(bound_user->GetIPString(), display_is_real);
}
}
}