Просмотр исходного кода

Merge pull request #1110 from slingamn/chghost.1

fix #1108
tags/v2.2.0-rc1
Shivaram Lingamneni 4 лет назад
Родитель
Сommit
4044a02dce
Аккаунт пользователя с таким Email не найден
2 измененных файлов: 3 добавлений и 3 удалений
  1. 1
    1
      irc/accounts.go
  2. 2
    2
      irc/client.go

+ 1
- 1
irc/accounts.go Просмотреть файл

1719
 	updated := client.SetVHost(vhost)
1719
 	updated := client.SetVHost(vhost)
1720
 	if updated {
1720
 	if updated {
1721
 		// TODO: doing I/O here is kind of a kludge
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 Просмотреть файл

1052
 // XXX: CHGHOST requires prefix nickmask to have original hostname,
1052
 // XXX: CHGHOST requires prefix nickmask to have original hostname,
1053
 // this is annoying to do correctly
1053
 // this is annoying to do correctly
1054
 func (client *Client) sendChghost(oldNickMask string, vhost string) {
1054
 func (client *Client) sendChghost(oldNickMask string, vhost string) {
1055
-	username := client.Username()
1055
+	details := client.Details()
1056
 	for fClient := range client.Friends(caps.ChgHost) {
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
 

Загрузка…
Отмена
Сохранить