X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/0197c3f5f7ac92d83711d28739670cba2e018701..ba29c43bb23de83c7715271e0830cb9f00e9e1c1:/hotline/client.go?ds=sidebyside diff --git a/hotline/client.go b/hotline/client.go index 24df7c3..3676560 100644 --- a/hotline/client.go +++ b/hotline/client.go @@ -103,8 +103,7 @@ func NewClient(cfgPath string, logger *zap.SugaredLogger) *Client { prefs, err := readConfig(cfgPath) if err != nil { - fmt.Printf("unable to read config file %s", cfgPath) - os.Exit(1) + logger.Fatal(fmt.Sprintf("unable to read config file %s\n", cfgPath)) } c.pref = prefs @@ -634,7 +633,6 @@ func (c *Client) LogIn(login string, password string) error { NewField(fieldUserIconID, c.pref.IconBytes()), NewField(fieldUserLogin, negateString([]byte(login))), NewField(fieldUserPassword, negateString([]byte(password))), - NewField(fieldVersion, []byte{0, 2}), ), ) }