3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-11 06:29:29 +01:00

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

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