From dc3051fd38620b2fff376217eb9d0dbe4d1e9d52 Mon Sep 17 00:00:00 2001 From: mappu Date: Wed, 22 Nov 2017 20:04:15 +1300 Subject: [PATCH] remove pointer indirection from self userinfo --HG-- branch : adc --- HubConnectionOptions.go | 2 +- NmdcProtocol.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/HubConnectionOptions.go b/HubConnectionOptions.go index 997c86e..c990aaa 100644 --- a/HubConnectionOptions.go +++ b/HubConnectionOptions.go @@ -4,7 +4,7 @@ type HubConnectionOptions struct { Address HubAddress SkipVerifyTLS bool // using a negative verb, because bools default to false SkipAutoReconnect bool // as above - Self UserInfo + Self *UserInfo NickPassword string } diff --git a/NmdcProtocol.go b/NmdcProtocol.go index 33bd276..db209fe 100644 --- a/NmdcProtocol.go +++ b/NmdcProtocol.go @@ -301,7 +301,7 @@ func (this *NmdcProtocol) SayPrivate(recipient, message string) { } 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) {