aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--messages.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/messages.go b/messages.go
index 796d0e2..c0209aa 100644
--- a/messages.go
+++ b/messages.go
@@ -47,9 +47,9 @@ type Authorization struct {
}
func (a Authorization) Supported(sol map[ChalType]Solver) []Challenge {
- supported := func(c []int) bool {
- for _, com := range c {
- ch := a.Challenges[com]
+ supported := func(com []int) bool {
+ for _, n := range com {
+ ch := a.Challenges[n]
if _, ok := sol[ch.Type]; !ok {
return false
}