summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-01-28 13:27:56 +0000
committerPeter Powell <petpow@saberuk.com>2019-01-28 14:02:27 +0000
commite1cf6f5ec70a0afcff4e6ceed5ead8042e9dcf23 (patch)
treee326fca89a5c8c9cdf343ff361b83015f4194ed9
parent5ed970ca7d4e079ca9ff577974572a577c65e823 (diff)
Fix erroneously sending RPL_YOURDISPLAYEDHOST to HAProxy clients.
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index fd794d386..b00992141 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1013,7 +1013,7 @@ bool User::ChangeDisplayedHost(const std::string& shost)
this->InvalidateCache();
- if (IS_LOCAL(this))
+ if (IS_LOCAL(this) && this->registered != REG_NONE)
this->WriteNumeric(RPL_YOURDISPLAYEDHOST, this->GetDisplayedHost(), "is now your displayed host");
return true;