diff --git a/job.go b/job.go index a36b4fa..9533704 100644 --- a/job.go +++ b/job.go @@ -1587,8 +1587,10 @@ func jobGWithdraw(j Job) { c.Encrypt(out, in) ref := hex.EncodeToString(out) - user := bot.ChatByID(fmt.Sprintf("%d", p.UserID64)) - stock := new(string) + user, err := bot.ChatByID(fmt.Sprintf("%d", p.UserID64)) + logOnError(err, "jobGWithdraw : ChatByID") + + var stock string for _, i := range p.Items { if i.Available > i.Required { stock = fmt.Sprintf("%s\n%d x %s", stock, i.Required, i.Name)