From d33a084bb6675bc9bb38cd4cc264ec71b76e2a6e Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Tue, 9 Jun 2020 18:17:48 -0400 Subject: [PATCH] fix #1125 --- irc/accounts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/accounts.go b/irc/accounts.go index 41f93809..4f70079d 100644 --- a/irc/accounts.go +++ b/irc/accounts.go @@ -1763,7 +1763,7 @@ func (am *AccountManager) applyVHostInfo(client *Client, info VHostInfo) { } oldNickmask := client.NickMaskString() updated := client.SetVHost(vhost) - if updated { + if updated && client.Registered() { // TODO: doing I/O here is kind of a kludge client.sendChghost(oldNickmask, client.Hostname()) }