src/module.c: adapt to changes in plugin