Rename modules and introduce namespace-aware module name lookups

See #248.
This commit is contained in:
fox.cpp 2020-07-14 19:42:17 +03:00
parent 4ea9f1eef7
commit 03d9e52627
No known key found for this signature in database
GPG key ID: 5B991F6215D2FCC0
44 changed files with 184 additions and 123 deletions

View file

@ -93,7 +93,7 @@ func (s *SASLAuth) CreateSASL(mech string, remoteAddr net.Addr, successCb func(i
// the 'auth' configuration directive.
func (s *SASLAuth) AddProvider(m *config.Map, node config.Node) error {
var any interface{}
if err := modconfig.ModuleFromNode(node.Args, node, m.Globals, &any); err != nil {
if err := modconfig.ModuleFromNode("auth", node.Args, node, m.Globals, &any); err != nil {
return err
}