|
@@ -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
|
|