Ver código fonte

Merge pull request #1126 from slingamn/chghost

fix #1125
tags/v2.2.0-rc1
Shivaram Lingamneni 4 anos atrás
pai
commit
c4c4ec027e
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      irc/accounts.go

+ 1
- 1
irc/accounts.go Ver arquivo

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

Carregando…
Cancelar
Salvar