]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/transaction.go
Disconnect banned users earlier in the login flow
[rbdr/mobius] / hotline / transaction.go
index 9800be3f336dea1b2234f614c885faa9c3a2a02d..8d7d9ed43b60ac41a296bca25c9224ad1172c763 100644 (file)
@@ -240,5 +240,5 @@ func (t *Transaction) GetField(id int) Field {
 }
 
 func (t *Transaction) IsError() bool {
-       return bytes.Compare(t.ErrorCode, []byte{0, 0, 0, 1}) == 0
+       return bytes.Equal(t.ErrorCode, []byte{0, 0, 0, 1})
 }