3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-22 18:52:41 +01:00
This commit is contained in:
Shivaram Lingamneni 2020-06-09 18:17:48 -04:00
parent 929e87a489
commit d33a084bb6

View File

@ -1763,7 +1763,7 @@ func (am *AccountManager) applyVHostInfo(client *Client, info VHostInfo) {
} }
oldNickmask := client.NickMaskString() oldNickmask := client.NickMaskString()
updated := client.SetVHost(vhost) updated := client.SetVHost(vhost)
if updated { if updated && client.Registered() {
// TODO: doing I/O here is kind of a kludge // TODO: doing I/O here is kind of a kludge
client.sendChghost(oldNickmask, client.Hostname()) client.sendChghost(oldNickmask, client.Hostname())
} }