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
+1 -1
View File
@@ -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())
}