Merge pull request #1126 from slingamn/chghost

fix #1125
This commit is contained in:
Shivaram Lingamneni 2020-06-11 09:37:35 -07:00 committed by GitHub
commit c4c4ec027e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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())
}