diff options
author | Peter Powell <petpow@saberuk.com> | 2019-10-22 10:09:17 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-10-22 10:09:17 +0100 |
commit | 693b8a5a39e15b09d7352667e8a7339e58d9114c (patch) | |
tree | e29668502146e3120e63515fd559627146daae73 /src/coremods | |
parent | 517c30e30bacc15c92582405c2c3a3f045083179 (diff) |
On DNS fail reset connecting users hostname to their IP.
Closes #1713.
Diffstat (limited to 'src/coremods')
-rw-r--r-- | src/coremods/core_hostname_lookup.cpp | 2 |
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); } } } |