Browse Source

Merge pull request #1110 from slingamn/chghost.1

fix #1108
tags/v2.2.0-rc1
Shivaram Lingamneni 4 years ago
parent
commit
4044a02dce
No account linked to committer's email address
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      irc/accounts.go
  2. 2
    2
      irc/client.go

+ 1
- 1
irc/accounts.go View File

@@ -1719,7 +1719,7 @@ func (am *AccountManager) applyVHostInfo(client *Client, info VHostInfo) {
1719 1719
 	updated := client.SetVHost(vhost)
1720 1720
 	if updated {
1721 1721
 		// TODO: doing I/O here is kind of a kludge
1722
-		go client.sendChghost(oldNickmask, client.Hostname())
1722
+		client.sendChghost(oldNickmask, client.Hostname())
1723 1723
 	}
1724 1724
 }
1725 1725
 

+ 2
- 2
irc/client.go View File

@@ -1052,9 +1052,9 @@ func (client *Client) SetOper(oper *Oper) {
1052 1052
 // XXX: CHGHOST requires prefix nickmask to have original hostname,
1053 1053
 // this is annoying to do correctly
1054 1054
 func (client *Client) sendChghost(oldNickMask string, vhost string) {
1055
-	username := client.Username()
1055
+	details := client.Details()
1056 1056
 	for fClient := range client.Friends(caps.ChgHost) {
1057
-		fClient.sendFromClientInternal(false, time.Time{}, "", oldNickMask, client.AccountName(), nil, "CHGHOST", username, vhost)
1057
+		fClient.sendFromClientInternal(false, time.Time{}, "", oldNickMask, details.accountName, nil, "CHGHOST", details.username, vhost)
1058 1058
 	}
1059 1059
 }
1060 1060
 

Loading…
Cancel
Save