X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/6610ee2030baa99e6129c7b06588d33038dde671..b6e3be945680d017874967ae72ef86ee4235dcc2:/hotline/client.go?ds=inline diff --git a/hotline/client.go b/hotline/client.go index d7af920..e300bb8 100644 --- a/hotline/client.go +++ b/hotline/client.go @@ -84,8 +84,8 @@ func (c *Client) Connect(address, login, passwd string) (err error) { TranLogin, [2]byte{0, 0}, NewField(FieldUserName, []byte(c.Pref.Username)), NewField(FieldUserIconID, c.Pref.IconBytes()), - NewField(FieldUserLogin, encodeString([]byte(login))), - NewField(FieldUserPassword, encodeString([]byte(passwd))), + NewField(FieldUserLogin, EncodeString([]byte(login))), + NewField(FieldUserPassword, EncodeString([]byte(passwd))), ), ) if err != nil { @@ -185,12 +185,6 @@ func (c *Client) HandleTransaction(ctx context.Context, t *Transaction) error { return err } } - } else { - c.Logger.Debug( - "Unimplemented transaction type", - "IsReply", t.IsReply, - "type", t.Type[:], - ) } return nil