aboutsummaryrefslogblamecommitdiff
path: root/cap.go
blob: 83dfbdac185dfbd422352fb9ae900e3a82e7dcdf (plain) (tree)
























                                                                             
package main

import (
	"strings"
)

var Caps = map[string]string{
	"sasl": "PLAIN,EXTERNAL",
}

var capls string

// Can't be in init() because Caps will be registered with init in the future
// and init()s are executed by filename alphabetical order
func setupCapls() {
	capls = ""
	for k, v := range Caps {
		capls += k
		if v != "" {
			capls += "=" + v
		}
		capls += " "
	}
	capls = strings.TrimSuffix(capls, " ")
}