~samwhited/xmpp

845150b9e040b252139d42feec9c8b55a71d6474 — Sam Whited 5 years ago 3b58282
jid: Make argument to Equal take a JID pointer
1 files changed, 1 insertions(+), 1 deletions(-)

M jid/jid.go
M jid/jid.go => jid/jid.go +1 -1
@@ 176,7 176,7 @@ func (j *JID) String() string {
}

// Equal performs an octet-for-octet comparison with the given JID.
func (j *JID) Equal(j2 JID) bool {
func (j *JID) Equal(j2 *JID) bool {
	return j.Localpart() == j2.Localpart() &&
		j.Domainpart() == j2.Domainpart() && j.Resourcepart() == j2.Resourcepart()
}