From e1cf6f5ec70a0afcff4e6ceed5ead8042e9dcf23 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Mon, 28 Jan 2019 13:27:56 +0000 Subject: Fix erroneously sending RPL_YOURDISPLAYEDHOST to HAProxy clients. --- src/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/users.cpp') 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; -- cgit v1.3.1-10-gc9f91