From 807e235489ff28bd82eefa5f4c628935c72cbd67 Mon Sep 17 00:00:00 2001 From: Steve McCoy Date: Tue, 28 Aug 2018 15:43:12 -0400 Subject: [PATCH] This is scanf --- plugins/picker/picker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/picker/picker.go b/plugins/picker/picker.go index 55060b5..f2ab65d 100644 --- a/plugins/picker/picker.go +++ b/plugins/picker/picker.go @@ -43,7 +43,7 @@ func (p *PickerPlugin) Message(message msg.Message) bool { } else if strings.HasPrefix(body, "pick") && strings.HasSuffix(body, sfx) { var n int var q string - _, err := fmt.Sscanf(body, "pick %d %s", n, q) + _, err := fmt.Sscanf(body, "pick %d %s", &n, &q) if err != nil || q != "{" { return false }