remove pointer indirection from self userinfo

--HG--
branch : adc
This commit is contained in:
mappu 2017-11-22 20:04:15 +13:00
parent ffc81f52fb
commit dc3051fd38
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ type HubConnectionOptions struct {
Address HubAddress Address HubAddress
SkipVerifyTLS bool // using a negative verb, because bools default to false SkipVerifyTLS bool // using a negative verb, because bools default to false
SkipAutoReconnect bool // as above SkipAutoReconnect bool // as above
Self UserInfo Self *UserInfo
NickPassword string NickPassword string
} }

View File

@ -301,7 +301,7 @@ func (this *NmdcProtocol) SayPrivate(recipient, message string) {
} }
func (this *NmdcProtocol) sayInfo() { func (this *NmdcProtocol) sayInfo() {
this.hc.SayRaw(this.getUserMyINFO(&this.hc.Hco.Self) + "|") this.hc.SayRaw(this.getUserMyINFO(this.hc.Hco.Self) + "|")
} }
func (this *NmdcProtocol) parseMyINFO(protomsg string) (*UserInfo, error) { func (this *NmdcProtocol) parseMyINFO(protomsg string) (*UserInfo, error) {